Hi.
I create an ultrachart and then call the RenderPDFFriendlyGraphics function to render the chart to a pdf report. The code looks like this:
ICanvas canvas = newFlow.AddCanvas();
canvas.Width = new FixedWidth(210);
canvas.Height = new FixedHeight(170);
Graphics g = canvas.CreateGraphics();
ultraChart1.RenderPdfFriendlyGraphics(g);
The RenderPDFFriendlyGraphics takes a long time to execute. Is this normal? My chart consists of about 50 series each of 175 points.
Hi Dave.
I am including a modified sample which shows how the charts and Render function is used in the application. The chart is drawn on a reportPreviewCtrl. I have modified the sample to reflect this.
Yes you are right. I could not get the chart on the form. I slapped this sample together quickly getting the relevant parts of the code into the sample to demonstrate my point.
In the actual application this function would be called while putting the graph on the form as well as in the PDF and even then the RenderPDF function takes long.
Hello Sudnya,
Thank you for the sample. I notice that your sample never actually shows the chart on the form. Have you noticed this issue occurring when you export a chart that's already been drawn on the form?
OK I have attached a sample solution. Even in this simple program, the function takes half a minute to execute.
Thank you for the update. I will wait for you to post the sample.