PrintScalingMethod Property
See Also DLL Example 1 Example 2
Applies To
fpSpread control
Description
Sets or returns the scaling method to use when printing the sheet. This property is available at run time only.
Syntax
long CSpreadSheet::GetPrintScalingMethod( );
void CSpreadSheet::SetPrintScalingMethod(long value);
[form.]fpSpread.PrintScalingMethod[ = setting%]
Remarks
The following settings are available:
Setting | Description | Constant |
---|---|---|
0 - None | (Default) No scaling occurs | PrintScalingMethodNone |
1 - SmartPrint | Uses the SmartPrint capability | PrintScalingMethodSmartPrint |
2 - Zoom | Uses the setting for the PrintZoomFactor property | PrintScalingMethodZoom |
3 - Best Fit | Determines the best fit based on the PrintBestFitPagesTall and PrintBestFitPagesWide properties | PrintScalingMethodBestFit |
Set the PrintScalingMethod property before you use the PrintSheet method to print the sheet.
This property is set at the sheet level. Set the Sheet property before setting this property if there are multiple sheets.
Note the following about using the SmartPrint capability:
- If the information can be printed without making any changes, the sheet prints in portrait mode.
- If the sheet is wider than a portrait page, the sheet prints in landscape mode.
- If the information does not fit in landscape mode, but will fit in landscape mode if the sheet is reduced up to 60% of its original size, the sheet is scaled to fit within the page.
- If the information cannot be scaled to fit, the sheet tries to reduce column widths to accommodate the widest string within each column.
- If all attempts to make the sheet print within a page fail, printing resumes normally in the current printer orientation with no reductions.
Spread Designer
Choose the Sheet menu, then the Print Properties menu, select the Print Properties tab, and then select an item in the Method drop-down list box in the Scaling group box in the Print Properties dialog box.
Data Type
Integer (Enumerated)
See Also
Printing a Sheet in the Active View in Spread Designer
Specifying Print Options
Specifying a Print Range
PrintBestFitPagesTall, PrintBestFitPagesWide, PrintZoomFactor properties
PrintSheet method
DLL Correspondence
SS_PRINTFORMAT structure