RadControls version |
2009 Q3
|
.NET version |
3.5
|
Visual Studio version |
2008 SP1
|
programming language |
C#
|
PROJECT DESCRIPTION
The RadChart does not have a print method directly on the control. We have created a print method that will use a zoom window to ensure that the chart will fit on a standard A4 size page. This is customizable offcourse. Firstly we will use the RadChart component to generate a graph, then the printer settings and page settings will be set. We clone the RadChart and set the size to fit on the page. If this is not done, the WYSIWYG view of chart will not fit onto the page. Hence the zoom control. We then give the user the option to print in color or greyscale as many of our customers have asked for this feature. This is my first code article, so please excuse if it is not in the correct format etc.
Here is the code: