GridPrintDocument , number of rows problem

Hello all,

I have following problem :
I have a grid with info's. + barcodes like.

Article 120
|| |||| |||

Article 140
||| |||||||

Article 27
||| || |||

When I want to print the grid , the grid preview displays sometimes the barcode on top of next page but the info on previous page.

How can I tell the object to print info&barcode always togheter? Or how can I tell the object to print x rows per page ?

thx in advance !


1 Reply

AD Administrator Syncfusion Team April 26, 2007 04:52 PM UTC

Take a look at the grid.PrintInfo.m_awPageFirstCol and m_awPageFirstRow arraylists. They should hold the row/column indexes of the 1st row/col on a particular page. You can try tweaking this collection to make sure these values point to the proper type of row/column.

This collection is computed in GridPrintDocument.OnBeginPrint. To to get at it, you probably will have to derive GridPrintDocument, override OnBeginPrint and call the base class before tweaking the collection.

Loader.
Up arrow icon