When trying to print the chart out using the ultrachart's PrintDocument property, custom annotations appear in the wrong location and modifications made during the FillSceneGraph and ChartDrawItem events do not appear as part of the print document. Is there any way to solve this problem?
If I want to go down the road of saving the chart as an image and then printing it, how do I go about doing that?
by default, the chart will resize to fit the page, so the size and aspect ratio will be altered, making pixel and percentage-based locations invalid from one image to the next.
if you access the PrintDocument property of the control and handle its PrintPage event before invoking the Print method, i think you can change the target size of the chart.
you could also just create your own PrintDocument object and add the chart to its graphics (e.Graphics in PrintPage) as a bitmap.
I am having the same issue. I have several BoxAnnotations on my ScatterChart that were position by Pixel, but when they print, the positions are way off. I tried a test and placed several BoxAnnotations by percentage and still these did not position correctly when printed.
How else can I handle this without exporting to an image first? How would I go about making this work in the PrintPage event as you suggested?
oops, i missed that detail from your last post. if you could send a sample project, steps to reproduce, or just screenshots, that would help me address the problem - providing a workaround or fixing it for a future hotfix release.
They are positioned using Row/Column location. This uses the series and point locations in the data to position the annotations on top of the corresponding primitive in the chart.