In my current application I'm using an UltraPrintPreviewDialog to display the results of the .NET generated output to the user so they can check values before printing. They needed to be able to email a PDF of the same information, so I recreated their current output using the Infragistics.Documents code library.
So, now I have better code that can be printed or sent as a PDF... however, I can't figure out how to get the code to work with the print preview dialog...
Is this possible?
Thanks,
Scot
Hi Scot, happy new year ;)
Yes it's possible ;)
I have had the same problem, and I solved with the code at bottom of message, you can put it in a class or where you want.
I wrote this code gettings ideas and parts of code from Infragistics Samples, Forum and Sources, if I well remember.
The idea is: when UPreviewDialog print an "virtual" UPrintDocument, I draw the the IProjectionPage, coming from pages filled by Report.Generate(), on the graph surface of the page of the "virtual" UPrintDocument.That it's all and work fine, after some test & refine.
The source code is not beautiful but it's work, if you have any troubles, write a post ;)
Have a fabulous 2008
Davide DollaneoDD69
using
Davide, thanks for this, helped tons!