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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Printing

Thread ID:

Created:

Updated:

Platform:

Replies:

80715 Apr 23,2009 03:10 PM UTC May 20,2009 03:37 PM UTC WinForms 6
loading
Tags: Chart
Mia Lee
Asked On April 23, 2009 03:10 PM UTC

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 10:04 AM UTC

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 10:09 PM UTC

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 11:28 AM UTC


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 06:17 PM UTC

thanks!


Administrator [Syncfusion]
Replied On May 20, 2009 03:33 PM UTC

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 03:37 PM UTC

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.

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

;