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!
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)
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
Hi,
Yes I also faced the same issue.
If u enable Borders fr ur charts like below,then the chart is not exporting to the PDF format properly(it will be like in ur screen shot)
this.ultrawinchart1.Borders.Raised=true;
Try to disable the borders raised property before exporting to PDF,like below
this.ultrawinchart1.Borders.Raised=false;
then it will work,and once exporting was done succesfully,again raise the borders.
I know this may be not the exact solution,but it will work with this.
Sorry for the late reply.
I used ur above sample code and tested.For me after exporting the chart to PDF,the background color is not black.
I sent u the sample code to ur mentioned email id.Please chk it and let me know,it helped u r not.
Thanks
thanks govrdhar ,
i sent u piece of code because it happened only for this settings hope this is sufficient
patil.nilima22@yahoo.com this is my mail id ,
if got solution den sent me mail ,
simple column chart with background settings ,
UltraChart1.Axis.PE.Fill = color.red
UltraChart1.Axis.PE.ElementType = PaintElementType.Gradient
UltraChart1.Axis.PE.FillGradientStyle = XDW.UltraChart.Shared.Styles.GradientStyle.BackwardDiagonal
or
UltraChart1.Axis.PE.FillGradientStyle = XDW.UltraChart.Shared.Styles.GradientStyle.Rectangular
thx
As per my knowledge...if u try setting with above property,it will work as it is..without getting any black color at the image background.
Eventhough if ur getting the issue..please give me the code,I will fix it.
thx govardhan,
but there is not a border problem its a color changing,
see in image chart background is pink shade but in pdf its a black.
can u pls help me?
plz