Spread 8.0 Documentation
SpvGetPageMultiCntH, SpvSetPageMultiCntH Functions
Support Options
DLL Reference > DLL Functions > SpvGetPageMultiCntH, SpvSetPageMultiCntH Functions

Glossary Item Box

SpvGetPageMultiCntH, SpvSetPageMultiCntH Functions


See Also    ActiveX

Applies To

fpSpreadPreview DLL control

Description

Set or return the number of pages displayed in the horizontal direction.

Syntax

C

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

int SpvSetPageMultiCntH(HWND hWnd, short value);

C++

short TPreview::GetPageMultiCntH(void);

int TPreview::SetPageMultiCntH(short value);

Parameters

The SpvGetPageMultiCntH function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpreadPreview control
lpValue Pointer to variable that receives number of pages displayed in the horizontal direction

The SpvSetPageMultiCntH function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpreadPreview control
value Number of pages to display in the horizontal direction

Remarks

By default, the control displays one page. The maximum number of horizontal pages the control can display is ten.

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.

Calling this function does not have an effect unless you have called the SpvSetPageViewType function and set the lpValue parameter to 5 (Multiple Pages).

You can specify the horizontal spacing between displayed pages by calling the SpvSetPageGutterH function. Call the SpvSetPageMultiCntV function to specify the number of pages displayed in the vertical direction. Call the SpvGetPagesPerScreen function to return the total number of pages displayed at one time.

Return Value

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

See Also

SpvGetPageMultiCntV, SpvGetPagesPerScreen, SpvSetPageGutterH, SpvSetPageMultiCntV, SpvSetPageViewType functions

ActiveX Correspondence

PageMultiCntH property

Copyright © GrapeCity, inc. All rights reserved.