Export.PDF.Distill.CustomPostScript DataWindow object property
Description
Setting that enables you to specify the PostScript printer
driver settings used when data is exported to PDF using the Distill!
method.
Controls
DataWindow objects
Syntax
PowerBuilder dot notation:
|
1 |
<span>dw_control</span>.Object.DataWindow.Export.PDF.Distill.CustomPostScript |
Describe and Modify argument:
|
1 |
"DataWindow.Export.PDF.Distill.CustomPostScript { = '<span>value </span>' }" |
|
Parameter |
Description |
|---|---|
|
value |
(exp) Whether the Values are:
|
Usage
The Distill! method performs a PostScript “print
to file” before distilling to PDF. This property can be
set to specify that you want to use a custom PostScript printer
before you call the SaveAs method with PDF! as
the SaveAsType or select File>Save Rows
As with the file type PDF in the DataWindow painter.
Set this property if you want to use a PostScript printer
driver for which you have set specific print options such as options
for font and graphic handling. If this property is not set, a default
PostScript printer driver specifically designed for distilling purposes
is used.
This property has no effect if the Export.PDF.Method property
is set to XSLFOP!.
In the
In the Data Export tab in the Properties view for the DataWindow object,
select PDF from the Format to Configure list and Distill! from the Method
list, and then select Distill Custom PostScript.
Examples
This example specifies an HP LaserJet PostScript
printer as the printer to be used to export PDF with customized
settings, and saves the data to a file called custom.pdf:
|
1 |
int li_ret<br> <br>dw1.Object.DataWindow.Export.PDF.Method = Distill!<br> |
|
1 |
dw1.Object.DataWindow.Printer = &<br>   "HP LaserJet 4Si/4Si MX PostScript"<br>dw1.Object.DataWindow.Export.PDF. &<br>   Distill.CustomPostScript="1"<br> <br>li_ret = dw1.SaveAs("custom.pdf", PDF!, true) |
This example uses Modify to set
the PDF export properties and specify a network printer:
|
1 |
dw1.Modify("DataWindow.Export.PDF.Method = Distill!")<br>dw1.Modify("Printer = '\print-serverpr-18' ")<br>dw1.Modify &<br>("DataWindow.Export.PDF.Distill.CustomPostScript='1'") |