Commander Script In Idocs S’abonner

0
Avatar
Legacy Poster

Hi,

I'm trying to get Commander to print a label, using an IDoc as a trigger file, to a printer designated at run time, as well as the number of copies, and label file to use if possible.

Using your example white paper [url=http://www.seagullscientific.com/ftp/whitepapers/WhitePaper_CommanderExamples.pdf]here[/url] I'm able get the label to print successfully using an IDoc as the trigger file by following example #4, but the number of copies, destination printer, and label to use is all hard-coded in the task. I would like to be able to control those aspects of the print job at print time (just like a Commander script of "%BTW% /AF=c:\command\command.btw /D=%Trigger File Name% /PRN="EasyCoder F4 (203 dpi)" /R=3 /P /DD" would allow). Is this possible with using an IDoc?


Thanks for your help,
Shaun

2 commentaires

0
Avatar
Michael Toupin (mtoupin
Actions pour les commentaires Permalien

To configure Commander to work with an IDoc and Commander script, you have to pass two files, instead of the single one that you do when using a text file. One of the two files is your IDoc document, the other is a text file containing your script for processing.

Using your Commander script example of:
/AF=c:\command\command.btw /D=%Trigger File Name% /PRN="EasyCoder F4 (203 dpi)" /R=3 /P /DD

The way to make this work with an IDoc is to simply change the database reference type from a text file to an IDoc file, in effect just changing the /D to a /IDOC and specify the filename of the IDoc, so the necessary change to your example would just be:
/AF=c:\command\command.btw /IDOC="FILENAME" /PRN="EasyCoder F4 (203 dpi)" /R=3 /P /DD


MikeT
0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Excellent! Thanks Mike, it works perfect.

Vous devez vous connecter pour laisser un commentaire.