Installing PostScript drivers

The Microsoft PostScript printer driver files, PSCRIPT5.DLL, PS5UI.DLL, and pscript.ntf, used for saving DataWindows as PDF, are not distributed with DataWindow .NET 2.5 due to licensing issues.

If you have installed a PostScript printer, the PostScript driver files required to create PDF files are already installed, typically in C:\WINDOWS\system32\spool\drivers\w32x86 on Windows XP. You must use the version of these files that is appropriate to the system where the PDF file is created. Copy the files to the Shared\PowerBuilder\drivers directory.

If you have never installed a PostScript printer, the Microsoft PostScript printer driver files, which are also required to add a PostScript printer, may not be available on your computer. You may be prompted to insert a Windows operating system installation CD when you perform the following procedure to add a PostScript printer.

StepsTo add a PostScript printer to your printer settings:

  1. Select Settings>Printers from the Windows Start menu.

  2. Double-click Add Printer.

  3. Specify a local printer.

  4. Specify FILE: as the port.

  5. Select a manufacturer (such as HP) and a printer with the designation PS (such as HP Color LaserJet PS or HP LaserJet 4/4M Plus PS 600).

  6. Accept the default name or enter a shorter name for the printer.

  7. Complete the wizard.

StepsTo use the print driver:

  1. In the DataWindow Designer plug-in in Visual Studio, select a DataWindow and select PDF from the Export list in the Data Export category in the Properties window.

  2. Set the ExportPostScript property to True.

  3. Specify the printer name (from step 6 in the previous procedure) as the PrinterName in the Print Specifications category.