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.

Print

Thread ID:

Created:

Updated:

Platform:

Replies:

26709 Mar 30,2005 11:17 AM Mar 30,2005 11:51 AM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 30, 2005 11:17 AM

I have some problems understanding how print feature works. The samples shipped with the grid seam to show that you simply create an image and send it to the printer. Is it true ? How far can we go setting what we want to print : a specified area, some other info, page numbering, header and footers, repeated headers with some advanced features like even pages... Thanks

Administrator [Syncfusion]
Replied On March 30, 2005 11:31 AM

Also, since we have to "draw" on the surface of the grid image, we have to handle the different formats like letter or A4 in Europe, Portrait and Landscape...

Administrator [Syncfusion]
Replied On March 30, 2005 11:51 AM

The grid uses the default .NET framework printing support offerred by the frameworks PrintDocument class. You can hook into this architecture and control what part of the print page you want to allow the grid to occupy, and then you are free to use the left-over real estate to print whatever you want to draw in that area. If you go to the grid KB and search for Print, you will get 5 hits that show how to do particular printing tasks. If you want to allocate the same size rectangle for the grid on every page, it simplifies the process as you can set teh default page settings to specify this fixed sized rectange, an dthen use the standard GridPrintDocument class to manage the printing, and it will properly compute the portions of the grid that appear on each page. If you want to vary the space allocated to the grid, then you would have to derive the GridProntDocument and override OnBeginPrint, and compute the portions of the grid that go on each page using your varying rectangle (that varies with the page). The default implementation does not handle this.

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.

;