How can I easily reprint a file that's has been requeued (saved in the print
directory) without using the winprint from the dos prompt? The file in
question is checks. Once you print them you can't rerun the process.
I cannot use the winprint command from dos because I need to grab the form
file so it spaces everything correctly.
When you requeue an APPX report, it leaves the print file and a configuration
file in the user's print directory after they've been submitted to the print
spooler.
For example, when printing a System Administration list, the print file might
be SYSADMI0 and the configuration file SYSADMI0.cfg
If you wanted to reprint this report, you might submit commands like the
following:
If you are on Windows:
cd C:\appx\data\PRINT\USR
C:\appx\data\winprint.exe -config=SYSADMI0.cfg SYSADMI0
or
C:\appx\data\winprint.exe -config SYSADMI0.cfg SYSADMI0
The general form is:
winprint.exe -config=<config.file> <print file>
or
winprint.exe -config <config.file> <print file>
For those on Unix/Linux:
/usr/local/appx/data/appx_print -config=/usr/local/appx/data/PRINT/USR/SYSADMI0.cfg
/usr/local/appx/data/PRINT/USR/SYSADMI0
You can construct and issue shell (DOS) commands by means of the RUN command.
You'll find documentation for it in the Designer Reference Manual, and at
www.appx.com/pub/documents/HowTo/run.Windows.Functions.html
The print file name can be found in --- PRINT FILE PATHNAME. You'd be well
advised not to operate on the file pointed to by --- PRINT FILE PATHNAME,
until after you've exited the OUTPUT process that generated the print file.
This means passing the contents of --- PRINT FILE PATHNAME to a subsequent
job step, possibly by means of a related or detached work field. |