Export.PDF.NativePDF.CustomOrientation
property (DataWindow object)
Description
Setting that enables you to specify the page orientation when you
use the PDFlib method to save data from a DataWindow object to a PDF
file.
Applies to
DataWindow objects
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.DataWindow.Export.PDF.NativePDF.CustomOrientation |
Describe argument:
|
1 |
"DataWindow.Export.PDF.NativePDF.CustomOrientation { = 'value' }" |
|
Parameter |
Description |
|---|---|
|
value |
(exp) An integer indicating the page Values are:
|
Usage
In the painter
Select an orientation mode from the Orientation list in the Data Export tab in the
Properties view for the DataWindow object.
Examples
This example exports PDF in portrait mode, and saves the data to a
file called custom.pdf:
|
1 2 3 4 5 |
int li_ret dw1.Object.DataWindow.Export.PDF.NativePDF.UsePrintSpec = 'No' dw1.Object.DataWindow.Export.PDF.Method = NativePDF! dw1.Object.DataWindow.Export.PDF.NativePDF.CustomOrientation = '2' li_ret = dw1.SaveAs("custom.pdf", PDF!, true) |
This example uses Modify to export PDF in portrait mode:
|
1 2 3 |
dw1.Modify("DataWindow.Export.PDF.NativePDF.UsePrintSpec = No") dw1.Modify("DataWindow.Export.PDF.Method = NativePDF!") dw1.Modify("DataWindow.Export.PDF.NativePDF.CustomOrientation = '2'") |
See also
Export.PDF.NativePDF.CustomSize
Export.PDF.NativePDF.ImageFormat
Export.PDF.NativePDF.MasterPassword
Export.PDF.NativePDF.PDFStandard
Export.PDF.NativePDF.Restrictions
Export.PDF.NativePDF.UserPassword