Spread 8.0 Documentation
SSGetPrintPageCount Function
Support Options
DLL Reference > DLL Functions > SSGetPrintPageCount Function

Glossary Item Box

SSGetPrintPageCount Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Returns the number of pages required for printing the sheet with the current print settings.

Syntax

C

long SSGetPrintPageCount(HWND hWnd);

C++

long TSpread::GetPrintPageCount( );

Parameters

The following parameter is available:

Parameter Description
hWnd Window handle of the fpSpread control

Remarks

Call this function to return the number of pages required for printing the sheet with the current print settings.

Because the number of pages required depends on the current sheet print settings, to return an accurate result call the SSGetPrintOptions function before you return the number of pages using the SSGetPrintPageCount function.

Calling the SSGetPrintPageCount function returns the page count for either the active sheet or a specified sheet. To specify a sheet, call the SSSetSheet function before calling the SSGetPrintPageCount function.

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.

Return Value

Number of pages required for printing.

See Also

Calculating the Number of Pages to Print

SSGetPrintOptions, SSSetSheet functions

ActiveX Correspondence

PrintPageCount property

Copyright © GrapeCity, inc. All rights reserved.