Spread 8.0 Documentation
SpvGetPageViewType, SpvSetPageViewType Functions
Support Options
DLL Reference > DLL Functions > SpvGetPageViewType, SpvSetPageViewType Functions

Glossary Item Box

SpvGetPageViewType, SpvSetPageViewType Functions


See Also    ActiveX

Applies To

fpSpreadPreview DLL control

Description

Set or return how pages are displayed.

Syntax

C

int SpvGetPageViewType(HWND hWnd, short FAR *lpValue);

int SpvSetPageViewType(HWND hWnd, short value);

C++

short TPreview::GetPageViewType(void);

int TPreview::SetPageViewType(short value);

Parameters

The SpvGetPageViewType function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpreadPreview control
lpValue Pointer to variable that receives how pages are displayed

The SpvSetPageViewType function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpreadPreview control
value Style of the pages displayed
Use one of the following values:
Constant Description
SPV_VIEWTYPE_WHOLEPAGE Displays the entire page in the preview area
SPV_VIEWTYPE_NORMALSIZE Displays the page the size of the fpSpread control
SPV_VIEWTYPE_PERCENTAGE Displays the page at the percent size specified by the SpvSetPageViewPercentage function
SPV_VIEWTYPE_PAGEWIDTH Displays the page at the size where the entire width fits in the client area
SPV_VIEWTYPE_PAGEHEIGHT Displays the page at the size where the entire height fits in the client area
SPV_VIEWTYPE_MULTIPLEPAGES Displays multiple pages as specified by the SpvSetPageMultiCntH and SpvSetPageMultiCntV functions

Remarks

Note: If you are using virtual mode, the fpSpreadPreview control displays only the number of rows that are in the fpSpread control's virtual buffer. For more information about how to specify the size of the virtual buffer, see Customizing Virtual Mode.

Return Value

SpvGetPageViewType: For C users, 1 if the function completes successfully; 0 otherwise. For C++ users, the setting for the function.
SpvSetPageViewType: 1 if the function completes successfully; 0 otherwise.

See Also

SpvSetPageMultiCntH, SpvSetPageMultiCntV, SpvSetPageViewPercentage functions

ActiveX Correspondence

PageViewType property

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.