Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save a Chart control picture to a file?

Having a chart displayed with a System.Windows.Forms.DataVisualization.Charting.Chart control in a .Net 4.0 WinForms application, can I save its render into a picture file?

like image 941
Ivan Avatar asked Jun 02 '12 18:06

Ivan


People also ask

How do I save a chart as a JPEG?

Click the File tab. Go to Save As. Click on the image format in which you want to save the chart (there is JPG, PNG, and BMP format).

How do I save an Excel chart as a picture?

Open your spreadsheet in Excel and right-click the chart you want to save as an image. Select “Save as Picture” from the shortcut menu. When the Save as Picture window opens, select the location where you want to save the image. Then, give your picture a File Name.

How do I save an Excel chart as a JPEG?

Click the chart that you want to save as a picture. Choose Copy from the ribbon, or press CTRL+C on your keyboard . Switch to the application you want to copy the chart to. If you're saving as a separate image file open your favorite graphics editor, such as Microsoft Paint.


1 Answers

How about the Chart.SaveImage() method?

like image 85
CodeCaster Avatar answered Dec 29 '22 13:12

CodeCaster