Hello everyone,
I have a chart named chart1 and I am trying to export the chart as a png file, This is my code:
var dialog = new SaveFileDialog();
dialog.DefaultExt = ".png";
dialog.Filter = string.Format("*.{0} | {1} File", "png", "PNG");
if (!(bool)dialog.ShowDialog())
return;
this.Chart1.Save("Test.png", 96d, 96d, new PngBitmapEncoder());
The dialog box opens correctly and allows me to select a location and a name for the file, but then the file does not save. Any ideas?
I have a chart named chart1 and I am trying to export the chart as a png file, This is my code:
var dialog = new SaveFileDialog();
dialog.DefaultExt = ".png";
dialog.Filter = string.Format("*.{0} | {1} File", "png", "PNG");
if (!(bool)dialog.ShowDialog())
return;
this.Chart1.Save("Test.png", 96d, 96d, new PngBitmapEncoder());
The dialog box opens correctly and allows me to select a location and a name for the file, but then the file does not save. Any ideas?