Hi Can you point me to a VB example of how to export a chart as a PDF in the latest version of Netadvantage for winforms. I need to create the chart in code and save it as a PDF without user intervention.
Thanks
http://help.infragistics.com/Help/NetAdvantage/NET/2007.3/CLR2.0/html/Chart_Export_to_PDF.html
Hi David
Are there any format settings I can make to the PDF? I would like the chart to be landscape, currently I only get a portrait view that I can't seem to change. Cheers
i'm no expert on the documents library, but i'm going to make an educated guess and say you need to reference the Section object and set its PageOrientation property to Landscape.
so change this:
Dim g As Graphics = r.AddSection().AddCanvas().CreateGraphics()UltraChart1.RenderPdfFriendlyGraphics(g)
Dim
As
to this:
Dim s As ISection = r.AddSection()
s.PageOrientation = PageOrientation.Landscape
Dim g As Graphics = s.AddCanvas().CreateGraphics()UltraChart1.RenderPdfFriendlyGraphics(g)
That worked great. Thank you