AD
Administrator
Syncfusion Team
April 25, 2005 04:00 PM UTC
Hi Andrew,
You have explored pretty much all the options that are available, and I really cannot think of any other way to implement merged print preview of multiple diagram documents. Providing a custom print document that lets you invoke Model.PrintPage() on each of the diagram Models in your application definitely seems to be the way to go.
However, you do not have to subclass the Diagram Model, as the Model class exposes its printing API through the Syncfusion.Windows.Diagram.IPrint interface. All you have to do from your print document is to cast the Model to an IPrint, and invoke the IPrint.PrintPage(PrintPageEventArgs evtArgs) method. Please refer to the class reference documentation on the Syncfusion.Windows.Forms.Diagram.IPrint interface and the Syncfusion.Windows.Forms.Diagram.DiagramPrintDocument classes for additional information on these types. If you have access to the source version of Essential Diagram, referring to the Diagram.Model.PrintPage(...) implementation, and the Diagram.CreatePrintDocument(...) virtual that creates the print document will provide some insight into the Essential Diagram printing mechanism.
Regards,
Prakash Surendra
Syncfusion Inc.,
AC
Andrew Coats
April 26, 2005 11:40 AM UTC
Thanks; using the interface worked like a dream.