Hi,
I created an ultrawinchart and I want to make a report within the ultrawinchart. For this I used the RenderPdfFriendlyGraphics function. With this function the rendering of the diagram works well but the legend is outside the diagramm. I think the rendering function don't work at the legend. Here is my code snippet:
Infragistics.Documents.Report.ICanvas canvas = page.AddCanvas(0, 0); Graphics g = canvas.CreateGraphics(); ultraChart.RenderPdfFriendlyGraphics(g, 200, 200);
If I don't use the scale function (third line) the legend is shown at the right position, but the chart is to large to show it on an A4-paper. Does somebody has an idea.
the legend showed up inside the chart when I tried the same thing. could you post a screenshot of what you're seeing, and also let us know the (4-part) version number of the dll you are using?
during making the requested screenshots (I post you the pdf-documents). I find out the following:
If I use the function ultraChart.RenderPdfFriendlyGraphics(g) with only one parameter the legend is shown at the expected position. If I use this method with three parameters (ultraChart.RenderPdfFriendlyGraphics(g, 400, 200)) the chart is shown as expected, but the legend is displayed at old position (with only one parameter). I use the function with three paremeter to scale down the graphic with the result that the legend is show outside the chart (see attachments).