I have a WinForms application that includes a sophisticated printing system. By implementing a simple interface, I can extend it so that I can print custom businesss objects seamlessly. My application uses GoDiagram and includes many complex drawings. Everything is working fine, thank you.
Now I need to integrate the drawings with various reports. Some of the report pages include content that comes from other parts of the application, with portions of the GoDiagram drawings included in various places of the report. In order to render those graphical elements, I have a customized GoDocument that selectively renders the diagram in different ways based on parameters I pass to it.
My questions are:
-
If I create a custom GoView that is never shown, but is used only for rendering the diagram, is it possible to “print” the view without displaying any UI? This would be useful in the one scenario where the entire diagram must be printed as a series of pages, but integrated into the application’s printing system.
-
For the other scenarios, where I need to render portions of the digram embedded into the report, is there anything better than MakeBitmap for getting a high-quality result? I’ve seen a few posts about SVG and metafiles, but they are very old and I’m not sure at this point what the best approach would be.