We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Any way to get a chart showing in an HTML document?

Thread ID:

Created:

Updated:

Platform:

Replies:

18679 Sep 7,2004 12:06 PM UTC Sep 7,2004 07:14 PM UTC WinForms 2
loading
Tags: Chart
Administrator [Syncfusion]
Asked On September 7, 2004 12:06 PM UTC

I am using the Webbrowser control to render an HTML document. I want to have a chart to be shown in the document. Anyone have any suggestions? TIA

Daniel Jebaraj [Syncfusion]
Replied On September 7, 2004 05:57 PM UTC

Hi, You can save the chart to a temp file on disk (using Draw(Image img))and use the file:/// URL format to display the file. Sample code to save a chart to image is given below.
private void btnSaveToImage_Click(object sender, System.EventArgs e)
		{
			Image bitmap = new Bitmap(this.chartControl1.Width, this.chartControl1.Height);
			this.chartControl1.Draw(bitmap);
			bitmap.Save(@"c:\temp\chart_image.png", ImageFormat.Png);
			bitmap.Dispose();
		}
Best regards, Daniel >I am using the Webbrowser control to render an HTML document. I want to have a chart to be shown in the document. > >Anyone have any suggestions? > >TIA

Administrator [Syncfusion]
Replied On September 7, 2004 07:14 PM UTC

Thanks Daniel, I''ll give it a try. >Hi, > >You can save the chart to a temp file on disk (using Draw(Image img))and use the file:/// URL format to display the file. > >Sample code to save a chart to image is given below. > >
>private void btnSaveToImage_Click(object sender, System.EventArgs e)
>		{
>			Image bitmap = new Bitmap(this.chartControl1.Width, this.chartControl1.Height);
>			this.chartControl1.Draw(bitmap);
>			bitmap.Save(@"c:\temp\chart_image.png", ImageFormat.Png);
>			bitmap.Dispose();
>		}
>
> > >Best regards, >Daniel > >>I am using the Webbrowser control to render an HTML document. I want to have a chart to be shown in the document. >> >>Anyone have any suggestions? >> >>TIA

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;