Hello,
I've implemented a Data Chart with export as an image functionality and have a few questions.
1) Is there any way to include the legend in the export? and if not is there a way to customize one of the axis labels to use multiple colors.
2) Are there built in methods for exporting to PDF or Excel and if not is there a workaround.
3) Is there a way to print a data chart but first send it to a print preview window?
Thanks in Advance!
Hi Anthony,
I believe that you could achieve this if you use the DrawToBitmap method instead of the image export feature. I am going to try this out myself and attach a sample here if it works.
Please let me know if you have any questions.
I've completed the sample. In my sample, I demonstrate how to use the DrawToBitmap method to render the DataChart with a legend. The result is contained in a normal .NET Bitmap object, so you can use it in a report or send it to a print preview normally.
Hello
I copied your code in my project and compiled without error. when clicking on the button nothing happening.
Tuoc.