Hi,I am trying to add the printing functionality into XamDataChart control. Based on the article http://blogs.infragistics.com/wpf/articles/printing-the-xamdatagrid-with-infragistics-reports.aspx I can get the chart visuals in the print preview dialog. However it does not include the Legends nor it displays the x-Axis labels i.e. it does not attempt to fit the chart visuals.
Above is the actual chart while below is the print preview.
which container are you trying to print? Remember the chart legend is not inside the chart, so you will have to pass to the container of the chart + legend. You may also want to pick a fixed width for the legend or you may have to jump through some hoops to make sure everything is done adjusting its size before you send it to print.
Thanks for your reply.I shall make the legend appear within the chart area and confirm if all works for me.What about the xAxis and its values please? Not sure if it relates to the legend position. Is there a way to enforce the Reporting component not to clip out anything.
I can't actually tell what may be causing that to occur, is there a way that you could share a small sample project that reproduces the issue?
Where might the link referenced in the original go? it is not longer a vlaid link.
You can look into this blog:
where it is explained how to export a XamDataChart into Image. After doing so you can print the Image.