I'm trying to save the images generated for the UltraPrintPreviewDialog to a file. I've searched for awhile and have not come across any examples of how I can access the generated images. Or even a way to replicate how the grid generates the preview images on my own.The issue I'm working around is when the grid is larger than the printable area. When using the dialog, the UltraGridPrintDocument / UltraGrid cuts off columns neatly and places the columns that were cutoff on their own image.
Can anyone point me to a solution?
Hi boyd21,
The UltraPrintPreviewDialog doesn’t easily allow for direct access to its dialog image, but I may be able to determine a method for accessing the images displayed within its interface, perhaps indirectly. It may be more feasible export the grid prior to manipulating it further, similarly to what is offered by our Reports engine, where grid information can be exported into for example a .pdf format.
I will investigate this issue further and I will share my findings; if you have any questions, in the meantime, please let me know.
Hi boyd21,During the course of my research I have determined a simpler approach using the FitWidthToPages property to restrict the columns to one page:this.ultraGridPrintDocument1.FitWidthToPages = 1;Please let me know if you have any questions regarding this issue.