Hey Everyone,
Any info out there on how to print the generated charts in say PDF format? They look fabulous on screen but the end users want to print them and file as needed.
Hey Everyone,
Any info out there on how to print the generated charts in say PDF format? They look fabulous on screen but the end users want to print them and file as needed.
download the Chart Control samples from MSDN. there are several samples of how to print. To get PDF, you need a PDF print driver.
http://code.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=1591
look in \WinSamples\ChartFeatures\Printing\
the simple way is:
using System.Windows.Forms.DataVisualization.Charting;
...
// Show Page Setup dialog
chart1.Printing.PageSetup();
// Print preview chart
chart1.Printing.PrintPreview();
// Print chart (without Printer dialog)
chart1.Printing.Print(false);
...