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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridPrintDocument , number of rows problem

Thread ID:





60011 Apr 26,2007 09:35 AM UTC Apr 26,2007 04:52 PM UTC WinForms 1
Tags: GridControl
Asked On April 26, 2007 09:35 AM UTC

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 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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon