We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

GridPrintDocument , number of rows problem

Thread ID:





60011 Apr 26,2007 05:35 AM Apr 26,2007 12:52 PM Windows Forms 1
Tags: GridControl
Asked On April 26, 2007 05:35 AM

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 !

Administrator [Syncfusion]
Replied On April 26, 2007 12:52 PM

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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.