how to print a doc file stored in a container using script...
You can export a copy of the file and set it to open on export. The file will then open with the computer's default app for that file type and the user can choose to print the file.
If you can come up with a command line (windows) that will cause the office doc to print, you can use export field contents to export a copy and send event to then execute the command line. Keep in mind that you can get the file name of such a file from the container to use as part of the command line text.
Is this specifically for a word .doc type document? Or perhaps for a PDF? PDF can probably be handled easier. On windows you can specify to print in the Send Event script step.
On OS X, you can use applescript to "do shell script" with something like this, assuming a pdf named "Proposal.pdf" on the desktop:
cd ~/Desktop ; lpr Proposal.pdf
and that will add a print job the the print queue of the default printer.
Do either of those work?
Try this for windows and macs:
Export the document from the field. Creating a $filepath using the temp directory may eliminate the problem of files building up on your desktop as the temp directory files get deleted (I think...)
The use SEND EVENT as it has a print document step and can use your $filepath variable. You can also use this to open the document in its application and manualy select print.
There are three choices to try under the miscellaneous menu if that doesn't work.
On IOS you can try targeting the directory of PDFs and Word.
Thanx a lot....I did it using SEND EVENT....working now....
Retrieving data ...