Spread Windows Forms 8.0 Product Documentation > Developer's Guide > Managing Printing > Customizing the Appearance of the Printing > Customizing the Printed Page Layout |
You can customize the layout of the printed page in any of several ways. The layout settings that you can customize include: color, borders, grid lines and opacity, centering and margins, orientation, shadows, and zooming. These customizations are possible with properties of the PrintInfo object.
There are several appearance customizations that can be done to the printed page, including setting the color, the border, and the grid.
You can set the PrintInfo ShowColor property.
You can set the PrintInfo ShowBorder property.
You can set the PrintInfo ShowGrid property.
There are several ways to control the orientation, whether landscape or portrait, of the page when printing.
You can set the PrintInfo Orientation property.
You can use LandscapeRule, which is a SmartPrint rule. For more information, refer to Optimizing the Printing Using Rules.
You can customize the margins of the printed page and you can center the printed page.
Refer to the figure below for definitions of the properties of the PrintMargin object.
The PrintInfo Margin property uses a PrintMargin object. When you use this object in code, the units of measure are 100-ths of an inch, so 3/4 of an inch would be 75.
When you use the Spread Designer and set the margins in the Sheet > Print Settings > Margins tab, the units of measure are inches, so 3/4 of an inch would be 0.75.
There are several ways to control the justification of contents on the page when printing.
You can set the PrintInfo Centering property.
One of the customizations of the page layout is the ability to print shadows.
You can set the PrintInfo ShowShadows property.
There are several ways to control the scaling of the printing.
You can set the PrintInfo ZoomFactor property.
The ZoomFactor and the zoom within the preview are different scaling mechanisms. The ZoomFactor in the print layout effects the size of the actual display and the print out size. The zoom within the print preview dialog is simply a temporary zoom in the display but is not saved for any printing.
Currently there is no means of adjusting the default zoom in the preview.
You can use ScaleRule, which is a SmartPrint rule. For more information, refer to Optimizing the Printing Using Rules.