>How to generate a pdf (for example) without requiring any printed output


>

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 = “6”
PARAM1 = “C:\MYSAMPLE.PDF”

PARAM5 = “”
PARAM5 = “1”
PARAM5 = “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.

Advertisements

One thought on “>How to generate a pdf (for example) without requiring any printed output

  1. >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!PaulE

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s