Hello,
How can I export an ultrachart to a PDF file?I found this place http://blogs.infragistics.com/forums/t/28162.aspx but it didn't help me.
I also did something like that (which I so at another place):
Infragistics.Documents.Reports.Report.Report r = new Infragistics.Documents.Reports.Report.Report();Infragistics.Documents.Reports.Report.Section.ISection sec = r.AddSection();this.ultraChart.RenderPdfFriendlyGraphics(sec.AddCanvas().CreateGraphics());
But it didn't work, and I can't figure out why.
Please help, thank you,
Zubi
Hi Boris,
Thanks again for your help. The problem was in my code, yours worked out just fine.
I used the overloaded version of RenderPdfFriendlyGraphics and it did work.
Thanks again,
Are you talking about the chart in my application or your own chart? If it is the second I will have to ask you to attach your sample application with your chart, so I could take a look at it. My chart renders fine for me.
You could also try the second overload of the 'RenderPdfFriendlyGraphics()' method and set width and height of the graphics.
ultraChart1.RenderPdfFriendlyGraphics(g,700,500);
Please do not hesitate to contact me if you need any additional assistance.
Hello Boris,
If I may, I would like to ask another thing on the same issue.
The export does work but only half of the chart appears in the exported PDF file. Is there a place where I can set the dimensions of the chart so it will fit the PDF file?
Thanks
Hello Zubi,
Thank you for your feedback and for sharing the issue with us.
Please feel free to let me know if a question about our toolset comes up on your mind.
Thank you, that did work. I guess I forgot to do the publish for the report and that's why I didn't see results from the export of the chart.