SetPrintOptions Method (Python)
Sets the value of the specified print option.
Syntax
SpssOutputDoc.SetPrintOptions(printOption,value)
Option | Description |
---|---|
SpssClient.PrintOptions.LeftMargin | Left margin |
SpssClient.PrintOptions.TopMargin | Top margin |
SpssClient.PrintOptions.RightMargin | Right margin |
SpssClient.PrintOptions.BottomMargin | Bottom margin |
SpssClient.PrintOptions.Orientation | Orientation (portrait or landscape) |
SpssClient.PrintOptions.StartingPageNumber | Starting page number |
SpssClient.PrintOptions.SpaceBetweenItems | Space between items |
SpssClient.PrintOptions.PrintedChartSize | Printed chart size (as is, full page, half page, or quarter page) |
The parameter value is a string. Following are the available settings:
- All margin settings and Space Between Items are in units of points (1/72 inch).
- For Orientation, 1 corresponds to Portrait and 2 corresponds to Landscape.
- For Printed Chart Size, 0 corresponds to As Is, 1 to Full Page, 2 to Half Page, and 3 to Quarter Page.
You can specify the print range using the PrintRange method. You print an
output document using the PrintOutputDoc method from the SpssOutputUI
class.