Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
710
UltraChart - PDF/XPS
posted

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"

Dim Report_Graph As Report = New Report() Dim Report_Graphics As Graphics = Report_Graph.AddSection().AddCanvas().CreateGraphics()

Me.UltraChart_Parameters.RenderPdfFriendlyGraphics(Report_Graphics)

Case "XPS"

Report_Graph.Publish(ReportName_XPS, FileFormat.XPS)
System.Diagnostics.Process.Start(ReportName_XPS)

Case "PDF"

Report_Graph.Publish(ReportName_PDF, FileFormat.PDF)

System.Diagnostics.Process.Start((ReportName_PDF))

Am i doing wrong ?

Thanks  a lot in advance for any hints!

Parents
  • 28496
    Offline posted

     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)

  • 65
    posted in reply to David Negley

     

    when ultrachart save in pdf & image format its different,

    in image format it works fine but when saved into pdf format its not working well

    i sent u sanpshot

     

Reply Children