Skip to main content

Problem:

How can I assign a file name when printing to Adobe Acrobat PDF Writer?

Resolution:

Define the name of the file to print in the SELECT statement as ACROBAT.

In the Windows Runtime configuration file, (runcobol.cfg), define the new device:

DEFINE-DEVICE  DEVICE=ACROBAT    PATH=" Adobe PDF".

In the program, use the "P$SetDocumentName" and assign a name that is incremented each time you print.

Disable the property for the printer that asks for the name of the file to print.

The attached example uses a free PDF file creator : Cute PDF

    

Attachments:

pdf.zip

Old KB# 4685