I've a problem with exporting the UC to a PDF or XPS format.
Problem is that while the export goes well, the chart is not scaled, since only a percentage is displayed.
The chart is being cut on the right, again, there is no auto scaling.
Any ideas are welcomed and needed asap!
Here is my code :
Dim ReportName_PDF As String = App_Path + "\Reports\Graph_1.pdf"
Dim ReportName_XPS As String = App_Path + "\Reports\Graph_1.xps"
Me.UltraChart_Parameters.RenderPdfFriendlyGraphics(Report_Graphics)
Case "XPS"
Case "PDF"
System.Diagnostics.Process.Start((ReportName_PDF))
Am i doing wrong ?
Thanks a lot in advance for any hints!
Thanks again for your help!
Please, can you give me a little code to do that?
Thanks in advance.
Gus
RenderPdfFriendlyGraphics is not designed to do any scaling to fit the page. You can, however, use the PageSize property of the report section to get the page size, and base the size of the chart off of that.
Thanks for the answer, I've tried that before, however the chart while stretched, is not properly scaled.
My point is, it's not supposed that the RenderPdfFriendlyGraphics will do the auto scaling to fit the page?
Thanks in advance for any help!
looks like you're doing everything correctly. if the chart is rendered too large to fit on the document, how about using the RenderPdfFriendlyGraphics overload that takes a width and a height as arguments?
Me.UltraChart_Parameters.RenderPdfFriendlyGraphics(Report_Graphics, 250, 250)
No ideas on how to solve this issue?
Thanks!