Using the functionality in the new Infragistics.Documents and Infragistics.Win.UltraWinGrid.DocumentExporter namespaces, I can programmatically create a document object which can include renderings of UltraGrid(s), plus many other document items. This document can be printed, and it can be exported to PDF or XPS.
Can I also include renderings of UltraWinChart(s) in my document, and if so, how?
Thanks!
Starting with NetAdvantage 2007 Volume 3, you can render you charts to PDF/XPS. You can read about the feature in the following help article:
Here is how you could implement this feature in C#:
Report r = new Report();ultraChart1.RenderPdfFriendlyGraphics(r.AddSection().AddCanvas().CreateGraphics());r.Publish(@"c:\report.pdf", FileFormat.PDF);
Instead of creating a new report, you can use any existing report you have a reference to. There is an overload in the RenderPdfFriendlyGraphics method that also takes a width and height as the second and third parameters.