BCGControlBar Pro for MFC
virtual void CBCGPGridCtrl::OnPreparePrintPages ( CPrintInfo *  pInfo,
int  nFirstItem,
int  nLastItem 
)
virtual

Called by the framework to prepare printing.

This function is called by the framework before CBCGPGridCtrl::OnBeginPrinting. The default implementation inits grid's structures before printing. By default the grid prints all grid items from first row to the last. Override this function if you want to specify the custom printed range.

Parameters
pInfoPoints to a CPrintInfo structure that describes the current print job.
nFirstItemSpecifies zero-based index of the first item to be printed
nLastItemSpecifies zero-based index of the last item to be printed.