I have a grid that I would like to be able to print and also print preview. The grid may has many bands and expandable regions - these are not displayed properly when using the ultraPrintPreviewDialog control.
The call to wingrid.Print(displayLayout,printDoc) prints how I want it to (i.e. all rows including those not visible in collapsed regions) and also wingrid.PrintPreview(displayLayout,printDoc).
The problem with using PrintPreview() on the grid is that the viewer has a lot less functionality (and a win 95 look).
Is there a way to the displaylayout of the grid with the UltraPrintPreviewDialog so that it behaves in the same way as wingrid.Print() and wingrid.PrintPreview()?
Hi,
The PrintPreview method on the grid uses the MS PrintPreviewDialog control. If you want a more modern print preview look, I recommend you check out the UltraGridPrintDocument and the UltraPrintPreviewDialog components.
I am using the UltraPrintPreviewDialog - that's the problem. The print preview shows the grid as it appears on-screen, whereas the print preview on the grid shows all of the grid's columns and rows (I have groupings so some data is hidden in collapsed regions) - which is what I'm after. I presume this is because I cannot pass the displaylayout to the UltraPrintPreviewDialog (?). What I would like to know is if I can get the UltraPrintPreviewDialog to produce and print a preview with all of my grid's data, the same way that UltraGrid.PrintPreview() does.