CHAPTER 5 Enhancing DataWindow Objects
DataWindow Designer User’s Guide 169
DataWindow Designer uses a PostScript printer driver specifically designed
for distilling purposes to configure the PDF output. You can choose to use a
different PostScript printer driver if you want to customize your PostScript
settings for generating PDF.
Users must have administrative privileges to create a PDF file.
To use a custom PostScript printer driver, you must set some properties.
❖ To save customized distilled PDF output in the DataWindow painter:
1 Select the Data Export tab in the Properties view for the DataWindow
object.
2 Select PDF from the Format to Configure drop-down list, select Distill!
from the Method drop-down list, and select the Distill Custom PostScript
check box.
3 Select the Print Specifications tab and specify the name of the printer
whose settings you want to use in the Printer Name box.
4 Save the DataWindow object, then select File>Save Rows As, select PDF
as the Save As Type, specify a file name, and click Save.
System requirements
To support saving as PDF using GNU Ghostscript, you must install Ghostscript
files from the GNU Web site. The default PostScript printer driver and related
files are installed in the drivers directory.
When you deploy applications that use the ability to save as PDF using the
distill method, the Ghostscript files and the drivers directory must be in the
same directory as the pbdwe105.dll runtime file. For example, if you deploy
your application and pbdwe105.dll and the other PowerBuilder runtime files in
a directory called MyApplication, the Ghostscript files must be in
MyApplication\gsn.nn, and the default PostScript printer driver and related
files must be in MyApplication\drivers.
See the chapter on deploying your application in the Programmer’s Guide for
information about redistributing these files.
Saving the data in HTML Table format
HTML Table format is one of the formats in which you can choose to save data.
When you save in HTML Table format, DataWindow Designer saves a style
sheet along with the data. If you use this format, you can open the saved file in
a browser such as Internet Explorer or Netscape. Once you have the file in
HTML Table format, you can continue to enhance the file in HTML.