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

About print

Thread ID:





70433 Dec 11,2007 01:28 PM UTC Dec 17,2007 04:23 AM UTC ASP.NET Web Forms (Classic) 5
Tags: Chart
Asked On December 11, 2007 01:28 PM UTC

The Chart control provides built-in support context menu which allows the user to print and save the chart.
this.ChartWebControl1.ShowContextMenu = true;
this.ChartWebControl1.ShowToolBar = true;

I have a question that if we can call the api function from the print function on the toolbar to print the chart?


Replied On December 11, 2007 01:46 PM UTC

I don't want the toolbar displayed and I only want to print the chart.

Rajarajeswari S [Syncfusion]
Replied On December 14, 2007 07:52 AM UTC

Hi Lio,

Sorry, you can print the chart only through the print option available on the Toolbar. It is not possible to print he chart without having the Toolbar.

Please let me know if you have any other concerns.


J.Nagarajan [Syncfusion]
Replied On December 14, 2007 10:42 PM UTC

Hi Lio ,

You can print the document without showing the Chart toolbar. You can use the PrintDialog and assign the ChartPrintDocument to it. Please refer to the following code snippet.


private System.Windows.Forms.PrintDialog printDialog1;
printDialog1.Document = this.chartControl1.PrintDocument;
if (printDialog1.ShowDialog() == DialogResult.OK)
this.chartControl1.PrintColorMode = ChartPrintColorMode.Color;

Please refer to the attached sample that demonstrates this completely.


I hope this will meet your requirement. Please feel free to contact us if you have any other concerns. We will be glad to assist you.


Rajarajeswari S [Syncfusion]
Replied On December 15, 2007 09:59 AM UTC

Hi Lio,

In Chare web you can print the chart without using the Tool bar by using the below code snippet:

Size chartSize = new Size((int)Math.Ceiling(this.ChartWebControl1.Width.Value),
Bitmap bmp = new Bitmap(chartSize.Width, chartSize.Height);
ResourceHolder printHohlder = new ResourceHolder(this.Page);
ImageResourceInfo iri = new ImageResourceInfo(bmp, ImageFormat.Png, this.ChartWebControl1.Parent.ID);


ChartUtils.PrintImageOnClient(this.Page, printHohlder.GetResourceUrl(iri));

Please have a look at the sample from the below link which illustrates the above:


Please let me know if this helps you out.


Replied On December 17, 2007 04:23 AM UTC



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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