AD
Administrator
Syncfusion Team
March 30, 2005 04:31 PM UTC
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...
AD
Administrator
Syncfusion Team
March 30, 2005 04:51 PM UTC
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.