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.

Printing column headers on each page

Thread ID:

Created:

Updated:

Platform:

Replies:

115406 Jan 16,2014 03:56 AM Feb 27,2014 12:01 AM Windows Forms 3
loading
Tags: GridControl
Inder Jeet Pal Singh
Asked On January 16, 2014 03:56 AM

Hi,

Is it possible to print header on each new page.

Can you please help me with some sample. I am using gridgroupingcontrol and print is working fine, just that not able to copy header to each new page.

Thank you
Inder

Anish George [Syncfusion]
Replied On January 21, 2014 11:11 PM

Hi Inder,

 

Thank you for using Syncfuison products.

 

We would like to let you know that this can be achieved by deriving the GridPrintDocument and by overriding its OnPrintPage method. In the override, the customized Header and Footer texts are defined and are drawn. Please refer the below KB link for sample and more information.

 

Link:

http://www.syncfusion.com/support/kb/444/How%20do%20I%20print%20header%20and%20footer%20in%20a%20grid%20with%20a%20display%20counter%20(like

 

Please let us know if you need any further assistance.

 

Regards,

Anish


Inder Jeet Pal Singh
Replied On February 20, 2014 03:54 AM

Hi,

Thank you for your help. It indeed works as expected.

The only other thing that i am not able to achieve is to ScaleColumnsToFitPage using this approach.

Any help to achieve that will be great.

Thanks
Inder

Anish George [Syncfusion]
Replied On February 27, 2014 12:01 AM

Hi Inder,

 

Thank you for your update.

 

We would like to let you know that we already have a dashboard sample having both header and ScalesToFit option in Print Grid Demo. Please refer the sample in the below location.

 

Location:

<Installed_Location>\Syncfusion\EssentialStudio\11.4.0.26\Windows\Grid.Windows\Samples\Printing\Print Grid Demo\

 

Please let us know if you need any further assistance.

 

Regards,

Anish


CONFIRMATION

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.

;