2.2.4.46.39 Worksheet::GetPrintArea

Description

Use to get the existing printing area. Pass NULL to test if printing area exist.

Syntax

BOOL GetPrintArea( ORANGE * pRange )

Parameters

pRange
[output] printing area.if pass NULL on input to test whether printing area exists.

Return

TRUE for success or if print area exist; FALSE otherwise

Examples

EX1

BOOL Worksheet_GetPrintArea_Ex1(ORANGE& rng)
{
    Worksheet wks = Project.ActiveLayer();
    return wks.GetPrintArea(&rng);
}

EX2

BOOL Worksheet_GetPrintArea_Ex2()
{
    Worksheet wks = Project.ActiveLayer();
    return wks.GetPrintArea(NULL);
}

Remark

See Also

Worksheet::SetPrintArea

Header to Include

origin.h