This is a migrated thread and some comments may be shown as answers.

Printing RadChart

2 Answers 47 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 02 Mar 2012, 11:53 PM
Hello,

I am trying to print a screenshot of a WPF window that contains several instances of RadCharts. When we do this, the frames that the charts are in resize, but the charts to not alter the visual to fit the new dimensions. For an example of this, you can see this in the XPS document that I uploaded.

Is there a way to make the RadChart look correct during printing? The container the chart resides in is just a user control with a border and a grid inside of it. The contents of the control always seem to work fine when there are other elements, just every time the RadChart never resizes. Any help with this issue is appreciated.

2 Answers, 1 is accepted

Sort by
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 07 Mar 2012, 12:56 PM
Hello Sean,

I am unable to reproduce the behavior you are describing in my test projects but have you tried forcing chart measure / arrange pass after you have changed the size of its container:
chart.Measure(new System.Windows.Size(chart.Width, chart.Height));
chart.Arrange(new System.Windows.Rect(new Point(0, 0), chart.DesiredSize));


Greetings,
Bart.
0
Scott Brian
Top achievements
Rank 1
answered on 07 Mar 2012, 05:27 PM
I resolved it with tech support.
Tags
Chart
Asked by
Sean
Top achievements
Rank 1
Answers by
Bartholomeo Rocca
Top achievements
Rank 1
Scott Brian
Top achievements
Rank 1
Share this question
or