<< Return to Main Index

< Return to Class Index

CGXPageBreakPlugin::SetPageGrid

void SetPageGrid(int nRowCount, int nColCount, BOOL bFitTo = TRUE);

nRowCount

Specifies the number of horizontal page breaks within the grid. Positive values force the grid to scale horizontally to fit within the specified number of pages. Zero or negative values constrain horizontal scaling proportionally to the value specified by nColCount. This parameter is ignored when bFitTo is FALSE.

nColCount

Specifies the number of vertical page breaks within the grid. Positive values force the grid to scale vertically to fit within the specified number of pages. Zero or negative values constrain vertical scaling proportionally to the value specified by nRowCount.  This parameter is ignored when bFitTo is FALSE.

bFitTo

If TRUE, the grid will do scaling printing and the page break is controlled by the first two arguments and the overall grid size. The grid will be divided as even as possible. If FALSE, no scaling will be done. User can visually set page break using mouse dragging when m_bDrawPageBreak is TRUE. The first two arguments will not be used if this argument is FALSE.

Remarks

Call this function to fit the grid into given page wide and tall.

CGXPageBreakPlugin

Class Overview | Class Members