When exporting a xamDataChart that is viewable to the user, I get everything I'd expect to get in the image out. But if the xamDataChart is not viewable to the user (because the graph is in another tab, for instance), the resulting image is missing the Axis and AxisLabels and any series that should be contained in the Legend.
How do I fix this?
Hello Ed,
I have been looking into your requirements and it seems that the following forum thread will be helpful in this case: http://es.infragistics.com/community/forums/t/94149.aspx. I have modified the sample Stefan attached there so that the chart is displayed in a tab control. If the user chooses the second tab, the one without a chart, and press the button to export, the chart is exported including the labels. Could you please have a look at the sample application and let me know if it is helpful for you? Thank you.
Hello Maria,
I copied your PrintChart code directly and still got the same result. Is it possible that this is not working because how I use the graph axes?
xamDataChart graph = new xamDataChart);
AxisCollection axisCollection = graph.Axes;
NumericXAxis xAxis = new NumericAxis();
NumericYAxis yAxis = new NumericYAxis();
axisCollection.Add(xAxis);
axisCollection.Add(yAxis);