EssGBeginSamplingZoomIn

Begins a random sampled zoom-in operation.

Syntax

ESSG_FUNC_M EssGBeginSamplingZoomIn (hGrid, usCells, pZoomCells, ulSamplingPercentage, ulOptions);
ParameterData TypeDescription

hGrid

ESSG_HGRID_T

Handle passed back from EssGNewGrid.

usCells

ESSG_USHORT_T

A count of the number of cell ranges in pZoomCells (the size of array).

pZoomCells

ESSG_RANGE_T

Describes the cells to be zoomed in upon. This is a one-dimensional array of cell ranges.

ulSamplingPercentage

ESSG_ULONG_T

The percentage sampling rate. This number is an integer between 1 and 100, inclusive. A depth of 100 percent will retrieve all members of the dimension. This effectively turns sampling off and retrieves all members. A ulSamplingPercentage of 50 will retrieve half the members.

ulOptions

ESSG_ULONG_T

A bitmask which describes the type of zoom-in (across or down) and the level of the zoom. The following two values are mutually exclusive:

  • ESSG_ZOOM_DOWN Any page/title dimensions selected will be zoomed down

  • ESSG_ZOOM_ACROSS Any page dimensions selected will be zoomed across

The following level values for ulOptions are themselves mutually exclusive:

  • ESSG_NEXTLEVEL Children

  • ESSG_ALLLEVELS All members

  • ESSG_BOTTOMLEVEL Bottom level

  • ESSG_SIBLEVEL Sibling level

  • ESSG_SAMELEVEL Same level

  • ESSG_SAMEGENERATION Same generation

  • ESSG_CALCLEVEL Calculation

  • ESSG_OPTIONS Use setting for grid options

Use bitwise OR (|) to specify the ulOptions; for example, ESSG_ZOOM_DOWN | ESSG_NEXTLEVEL

Notes

Return Value

If successful, returns ESSG_STS_NOERR.

Access

None.

See Also