Can someone give me a working example of using the PageSection.PrintSection correctly? I can't seem to get it to work. I have an UltraGridPrintDocument setup and I want to use document.PageBody.PrintSection to a System.Drawing.Graphics object.
It seems my problem comes from using the Page/PageBody sections. When I try to use the Header or Footer, they seem to print correctly to the Graphics object. The example I need must use the Page or PageBody sections, and that section should be printing a grid (UltraGridPrintDocument.Grid).
Thanks in advance
The sections are implemented as part of the UltraPrintDocument as a means of controlling the appearance of the areas of the page. The Page and PageBody are just going to render the background settings you may have set on their Appearance property - it has no relation to the content and will not cause the associated grid to go into a print operation and render the first page's content. The UltraGridPrintDocument is just a derived UltraPrintDocument that during a print operation (i.e. when you have called the PrintDocument.Print method) will render its contents as the printcontroller causes the PrintPage to be raised.