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.
Many Thanks
The option to create a vectored graphics primitive rather than a BitMap is a new product idea and you can submit this idea on our wpf ideas site.
hi Stefan, I read your the referenced article and also looked at the example "Printing Multi-Section Documents." I printed out the sample from "Printing Multi-Section Documents" to a pdf file. I noticed the data grid had individual strings for the XamDataGrid Data printout, but for the XamDataChart Visual it was one big Bitmap. Is it possible to print out the chart and vectored graphics primitives instead of a BitMap? This would siginificantly reduce the size of the pdf file, especially if the chart to be printed out was large. Is this possible?
Hello,
You can look into this blog:
http://es.infragistics.com/community/blogs/petar_monov/archive/2012/03/14/controls-to-images.aspx
where it is explained how to export a XamDataChart into Image. After doing so you can print the Image.
Where might the link referenced in the original go? it is not longer a vlaid link.
thanks
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?