This content has been marked as final. Show 3 replies
I suspect that your duplicate print is caused by either specifying the printer or by defaulting the printer for
tasks. Not specifying the -z parameter tells the print agent to send the print to the default printer selected within the form using Output Designer. As I'm sure you are aware, what you want to do is not create any print for the PGCNTGET task while doing so for the PGCNTSET task.
Your error is caused because you are specifying the
I don't know if you can use
for the file name so I won't address that part of the parameter. (But if the operating system doesn't recognize it, then that could be causing the error.) What
obvious to me is the
part of the parameter. The
that you see in the manual is present as a label or placeholder only. It is not meant to be there as a literal value. You have to replace
with the name of an actual print queue defined on the server. For example, if you want to send the print to a queue with a name of
you would replace "queuename" within the parameter with "HP9050" so that it would look like:
Assuming that NUL: is valid in this format, and with my understanding of what NUL: would do, then the result would be no printed output. If that is what you really want, then the sample PGCNTGET task that comes with Central uses:
(but that might not be valid for the operating system).
The format you are using is intended to place a file with the specified name in the named queue. I don't think that is what you want.
What I do when I don't want any printed output is to use the parameter
which results with a file named "NULL" in the "collector" folder (where the data files are placed for processing by Central). I know that I can safely ignore or delete this file without affecting anything. If you don't want it in the collector directory I believe that you can specify the path to where you want it placed.
Thanks for your detailed message. I am still no good in jetform and is simply going by examples and trial-and-errors. You're right, I don't want to print twice - and that is exactly the problem I am trying to resolve.
-zNULL in your last paragraph might be the approach I am going to take to temporary fix this problem. Thanks for the hint.
Jetform central is running in Windows2000 server. And I hope -zNUL: is supported for this OS. However, it did not work.
Is the queuename same as the printer name in the Start->Settings->printers folder? For example, I have a printer defined as 'FX Document Centre 285 PCL 6'. So, will the -z option be -zFX Document Centre 285 PCL 6/NUL: in this case?
The queuename is the name as it is defined within Central; not the name it is known to Windows. Using the Central Control program (on the server) it would be the name defined within
b File->Job Management Database->Printers...
This would be where you would give the "logical" printer name that was associated with the physical printer defined within Windows.