<p>I have a WebChartControl on my web page. When the chart was generated, an image is being produced and it was shown on the page. </p>

<p>Is there a way to get and save this chart as an image output on runtime? </p>

[{'answer_id': 46637, 'author': 'xanadont', 'author_id': 1886, 'author_profile': 'https://Stackoverflow.com/users/1886', 'pm_score': 1, 'selected': False, 'text': '<p>Sure.  Ultimately the image comes from a URL of some sort.  Do a view-source on the web page and see what that URL looks like.  With a certain amount of reverse-engineering, usage of System.Web.UI.HtmlTextWriter, perhaps an HttpHandler, etc. you should be able to get what you want.</p>\n'}, {'answer_id': 283130, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>Use the ExportToImage method of the ChartControl object .. This is WinForm code, but the same concept should hold true for WebChartControl:</p>\n\n<pre><code>    Dim chart As ChartControl = ChartControl1.Clone()\n    chart.Size = New Size(800, 600)\n    chart.ExportToImage("file.png", System.Drawing.Imaging.ImageFormat.Png)\n</code></pre>\n'}, {'answer_id': 1809828, 'author': 'Martin Bell', 'author_id': 220160, 'author_profile': 'https://Stackoverflow.com/users/220160', 'pm_score': 1, 'selected': False, 'text': '<p>The best solution for exporting an image from a Developer Express chart control (web) is:</p>\n\n<pre><code>((IChartContainer)[Your web chart control]).Chart.ExportToImage([Your file name], ImageFormat.Png);\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/46529', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4215/']