Spread 8.0 Documentation
SpvGetPageViewPercentage, SpvSetPageViewPercentage Functions
Support Options
DLL Reference > DLL Functions > SpvGetPageViewPercentage, SpvSetPageViewPercentage Functions

Glossary Item Box

SpvGetPageViewPercentage, SpvSetPageViewPercentage Functions


See Also    ActiveX

Applies To

fpSpreadPreview DLL control

Description

Sets or returns the size of the displayed pages as a percentage if the view type is set to percentage.

Syntax

C

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

int SpvSetPageViewPercentage(HWND hWnd, short value);

C++

short TPreview::GetPageViewPercentage(void);

int TPreview::SetPageViewPercentage(short value);

Parameters

The SpvGetPageViewPercentage function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpreadPreview control
lpValue Pointer to variable that receives the percentage size

The SpvSetPageViewPercentage function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpreadPreview control
value Percentage size of displayed pages

Remarks

By default, the page view percentage is 100 percent. The minimum value of the value parameter is 1. If you enter a decimal value for the value parameter, the value will be rounded to the nearest integer.

Calling this function does not have an effect unless you have called the SpvSetPageViewType function and set the value parameter to SPV_VIEWTYPE_PERCENTAGE.

Return Value

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

See Also

SpvSetPageViewType function

ActiveX Correspondence

PageViewPercentage property

Copyright © GrapeCity, inc. All rights reserved.