Spread 8.0 Documentation
PrintPageCount Property
Support Options
ActiveX Reference > ActiveX Properties > PrintPageCount Property

Glossary Item Box

PrintPageCount Property


See Also    DLL

Applies To

fpSpread control

Description

Returns the number of pages required for printing the sheet with the current print settings. This property is available at run time only.

Syntax

C++

long CSpreadSheet::GetPrintPageCount( );

Visual Basic

[form.]fpSpread.PrintPageCount

Remarks

Use the PrintPageCount property to determine the number of pages required for printing the specified sheet. This property returns page count for the current sheet setting unless you first set the Sheet property to specify the sheet for which you are returning the property.

Because the number of pages required depends on the current print settings, to return an accurate result set the following properties before you return the number of pages using the PrintPageCount property:

ColPageBreak PrintGrid PrintPageStart
PrintBestFitPagesTall PrintHeader PrintRowHeaders
PrintBestFitPagesWide PrintMarginBottom PrintScalingMethod
PrintBorder PrintMarginLeft PrintShadows
PrintCenterOnPageH PrintMarginRight PrintType
PrintCenterOnPageV PrintMarginTop PrintUseDataMax
PrintColHeaders PrintOrientation PrintZoomFactor
PrintFooter PrintPageEnd RowPageBreak

Note: If the sheet contains a large number of pages, it might take some time for the control to return the page count. Consider providing an in-progress indicator or message.

Data Type

Long Integer

See Also

Calculating the Number of Pages to Print

ColPageBreak, PrintBestFitPagesTall, PrintBestFitPagesWide, PrintBorder, PrintCenterOnPageH, PrintCenterOnPageV, PrintColHeaders, PrintFooter, PrintGrid, PrintHeader, PrintMarginBottom, PrintMarginLeft, PrintMarginRight, PrintMarginTop, PrintOrientation, PrintPageEnd, PrintPageStart, PrintRowHeaders, PrintScalingMethod, PrintShadows, PrintType, PrintUseDataMax, PrintZoomFactor, RowPageBreak, Sheet properties

DLL Correspondence

SSGetPrintPageCount function

Copyright © GrapeCity, inc. All rights reserved.