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. Image for the cookie policy date
close icon

Custom Header Printing

1) Is it possible to print from the grid & get events fired when the header, footer & body is printed..as we need to modify the header in reports on each page & also add a custom calulated footer for the page. Much alike OGGrid. 2) When the cells are covered the background of cell is not painted properly. [image attached] Your early response will help us release our order for thr Suite at the earliest. Regards, Pankaj

1 Reply

CB Clay Burch Syncfusion Team June 25, 2002 12:25 PM UTC

> 1) Is it possible to print from the grid & get events fired when the header, footer & body is printed..as we need to modify the header in reports on each page & also add a custom calulated footer for the page. Much alike OGGrid. > > 2) When the cells are covered the background of cell is not painted properly. [image attached] > > Your early response will help us release our order for thr Suite at the earliest. > > Regards, > Pankaj > If you want a quick response to such questions, you should submit an incident through our Direct Trac support system. This forum is monitored on an informal schedule, and you could possibly wait days before a Syncfusion engineer sees your post. This forum is mainly intended as a place where our customers can interact with one another. You can, of course, post them here as well, but you may not get a timely response on this open forum. To print footers and headers now, you would handle a couple events on the GridPrintDocument object that you create to do your printing. In its BeginPrint event, you would set the grid margins (in the GridPrintDocument.DefaultPageSettings property) to reserve header and footer space, and you may also have to set the GridBounds property. Then in the PrintPage event, you would print your footer and header. A straight-forward way of doing this is to use a richtextbox to create your footer/header, and then print this RTB in this event handler. Our Window Forms FAQ has a link to a sample on printing a richtextbox. Future releases of Essential Grid will support footer/header printing in a more straight-forward manner. As far as the problem with the cell image, can you post a code snippet so we can see exactly what settings you have so we can reproduce this problem. For example, do you have one of the listboxselectionmode set? From the picture, it is not clear whether this is set or not. As soon as we can see the problem here, we should be able to suggest something to avoid it, or to verify it as a bug and get it fixed.

Loader.
Live Chat Icon For mobile
Up arrow icon