private void Save_Click(object sender, System.EventArgs e)
{
// Create a new save file dialog
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
// Sets the current file name filter string, which determines
// the choices that appear in the "Save as file type" or
// "Files of type" box in the dialog box.
saveFileDialog1.Filter = "Bitmap (*.bmp)|*.bmp|JPEG (*.jpg)|*.jpg|EMF (*.emf)|*.emf|PNG (*.png)|*.png|SVG (*.svg)|*.svg|GIF (*.gif)|*.gif|TIFF (*.tif)|*.tif";
saveFileDialog1.FilterIndex = 2 ;
saveFileDialog1.RestoreDirectory = true ;
// Set image file format
if(saveFileDialog1.ShowDialog() == DialogResult.OK)
{
ChartImageFormat format = ChartImageFormat.Bmp;
private void Save_Click(object sender, System.EventArgs e)
{
// Create a new save file dialog
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
// Sets the current file name filter string, which determines
// the choices that appear in the "Save as file type" or
// "Files of type" box in the dialog box.
saveFileDialog1.Filter = "Bitmap (*.bmp)|*.bmp|JPEG (*.jpg)|*.jpg|EMF (*.emf)|*.emf|PNG (*.png)|*.png|SVG (*.svg)|*.svg|GIF (*.gif)|*.gif|TIFF (*.tif)|*.tif";
saveFileDialog1.FilterIndex = 2 ;
saveFileDialog1.RestoreDirectory = true ;
// Set image file format
if(saveFileDialog1.ShowDialog() == DialogResult.OK)
{
ChartImageFormat format = ChartImageFormat.Bmp;