I have an application in place which uses ultra grids in multiple areas. I am attempting to optimize this application for hosting, but i am running into issue with printing as the hosted server will not have access to the client side printer. My solution is to take the print preview dialog and have it print to pdf instead.
Is there a better way available in infragistics other than UltraGridDocumentExporter? This loses the formatting and it does not look very presentable in comparison.
Hi,
If your server doesn't have an attached printer, then you could install a PDF print driver (there are several of them available online and I think some might even be free). These allow you to print to a pdf document just as you would print to a printer. There are also drivers that allow you to print to XPS format, which is essentially the same thing. I think one such driver installs with Windows or maybe Office.
As for the UltraGridDocumentExporter, what do you mean by "loses the formatting." Exporting the grid to a PDF document is WYSIWYG. It doesn't remove any formatting that I am aware of - although perhaps it may not be able to support everything you see on the screen like hatch brushes or gradients.
I didn't mean formatting was lost from the original, but rather we lose the ability to format the document to some degree.
the ultragridprintdocument class allows editing page settings, color style, calendar info, calendar look, start and end dates, etc.
I assumed you meant that there was formatted applied to the on-screen grid that was somehow lost in either the exported PDF document or in the printed page. But I'm not still really clear on what you mean. What does editing the page settings have to do with it?
The exporter fires events where you can modify the export layout or even the PDF objects directly if you want to change the export without affecting the on-screen grid.
Hello Phillip,
I am just checking about the progress of this issue. Let me know if you need our further assistance.
Thank you for using Infragistics Components.
I found another workaround which allowed me to use the built in preview print controller to extract the images of a print preview on the server side and reassemble them on the client side.
Thanks for your help.