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.
Unfortunately, activation email could not send to your email. Please try again.

Printing

Thread ID:

Created:

Updated:

Platform:

Replies:

80715 Apr 23,2009 11:10 AM May 20,2009 11:37 AM Windows Forms 6
loading
Tags: Chart
Mia Lee
Asked On April 23, 2009 11:10 AM

I have labels that I have inserted on the chart. When I use the tool bar to print out the chart, the labels do not display.

How can I print the chart with labels or pictures that I have added on top of the chart?

p.s. Thanks for all your help!


Manimala S [Syncfusion]
Replied On April 24, 2009 06:04 AM

Hi Lee,

Thanks for your continuous support.

To make the label or any other control to be visible in the print or preview you have to include the below line of code in your form_load() event.

//Code
this.chartControl1.Controls.Add(this.label3);

Kindly, let me know if it helps.

Thanks,
Manimala.



Mia Lee
Replied On April 28, 2009 06:09 PM

Thanks!

Quick question.. how can I print the chart w/o the toolbar being printed with it?


Manimala S [Syncfusion]
Replied On April 29, 2009 07:28 AM


Hi Lee,

It is possible to print the chart without using the toolbar.

Here is the sample code to do that.

Size chartSize = new Size((int)Math.Ceiling(this.ChartWebControl1.Width.Value),
(int)Math.Ceiling(this.ChartWebControl1.Height.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);

this.ChartWebControl1.Draw(bmp);
printHohlder.AddResource(iri);

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


For more information on this kindly, have a look at the following link.

http://help.syncfusion.com/ug_71_new/chart/HowToPrintTheChartWithoutUsingToolbar.html


Thanks,
Manimala.



Mia Lee
Replied On May 5, 2009 02:17 PM

thanks!


Administrator [Syncfusion]
Replied On May 20, 2009 11:33 AM

Does this same example apply wo Winforms? I can't find a ResourceHolder or ImageResourceInfo for Syncfusion.Windows.Forms.Chart.

Thanks

Mia Lee
Replied On May 20, 2009 11:37 AM

Thanks, figured it out.

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.

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.

;