Firstly, I must thank Bryan Shumsky (RevUS) for the content of this posting, as it was provided to us as part of a support discussion.
In the SET_PRINTER “INIT” call, there are up to 9 parameters (in addition to the “INIT” parameter itself). It is therefore possible to have both OIPI and OIPI.NET generate output to a file without user interaction by setting the following values:
- In the first parameter, field 3 should be set to “6”, and field 4 set to the name of the pdf file that you wish to generate
- In the fifth parameter, field 1, value 3 should be set to “1”
- In the fifth parameter, field 1, value 4 should be set to “3”
For example:
PARAM1 = “”
PARAM1<3> = “6”
PARAM1<4> = “C:\MYSAMPLE.PDF”
PARAM5 = “”
PARAM5<1,3> = “1”
PARAM5<1,4> = “3”
CALL SET_PRINTER(“INIT”, PARAM1, “”, “”, “”, PARAM5, “”, “”, “”, “”)
This should be all you need to specify. However, you might check the on-line docs for the INIT call, to make sure the other (default) values are appropriate.
Thanks for that Martyn. I'm already using this command but I'd left off the <1,4> = 3 setting! I was wondering why my task bar was flickering! It should save a bit of time too when creating several thousand pdfs!
ReplyDeletePaulE