On Windows, this would be done by using a VBScript which Rev can "do".
Ken Ray has a feature here
http://www.sonsothunder.com/devres/revo ... iac001.htm which shows a method of communicating with MS Excel.
It was written a while ago, and the method of calling the script by writing out a temporary file is not necessary since the improvement of Rev's ability to "do" a script as an alternate language if you have a recent version.
You can make a vbscript file which will open the Word or Excel object and populate it appropriately. If you put that vbscript into a field or custom property of Rev, you can then call it by something like
Code: Select all
do the cVBScript of this card as "vbscript"
depending on where you have put it. If you want, you can make the VBScript a "template" with "placeholders" like "<<fieldName>>" and if you first copy the VBScript into a variable (eg tScript) and then
Code: Select all
replace "<<fieldName>>" with field "fieldName" in tScript
before you tell Rev to
then you can tailor the script to the specific requirement at runtime.
Look up "do" in the Rev dictionary. With a script called like this you will need to avoid wscript.echo and set any result to be returned to Rev by setting a variable called "result" in the vbscript. (wscript.echo can be used to return a value from a script called by the shell technique as mentioned on Ken's Sons of Thunder page).
Apart from that, you really need to be looking at vbscript tutorials and resources to learn how to interact with an MS Office App by script, such as
http://www.robvanderwoude.com/vbstech_a ... _word.html or
http://vbaexpress.com/kb/default.php?action=list to see what you can get them to do. (There's LOTS you can get them to do!)
You could also try writing out your information from Rev into a temporary file as the source data for a mail merge document, which you can "launch" (look up "launch" in the dictionary) and have it create a "merged" file with the data you wrote out.
Hope that helps, but it's hard to be any more specific.