This is a migrated thread and some comments may be shown as answers.

Printing multiple charts on one page

2 Answers 127 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Peter
Top achievements
Rank 1
Peter asked on 09 Sep 2008, 11:07 AM
hi

I have 4 line charts in my form that I want to print on one page. I can see how to print them one to a page - but I can't work out how to print them all on one page.

What is the best way to do this?

regards
peter

2 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 10 Sep 2008, 06:33 AM
Hi Peter,

Can you, please, elaborate more on the problem? Are you using the WinForms or the Reporting chart? If using WinForms chart, how exactly do you print the chart?

Kind regards,
Evtim
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Peter
Top achievements
Rank 1
answered on 15 Sep 2008, 12:49 AM
Hi

I'm using WinForms Chart. To print the chart only on a page by itself there is a print type method - but it doesn't offer much control over what happens and I couldn't see how to put other things on the page.

I worked it out in the end - I use the following code on each chart:
  Bitmap bmp = new Bitmap(radChart1.Width, radChart1.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
  radChart1.DrawToBitmap(bmp, new Rectangle(0, 0, radChart1.Width, radChart1.Height));
  ev.Graphics.DrawImage(bmp, top, left, width, height);

regards
Peter
Tags
Chart (obsolete as of Q1 2013)
Asked by
Peter
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Peter
Top achievements
Rank 1
Share this question
or