Print multiple charts on multiple pages including preview???

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Alex
Newbie
Newbie
Posts: 38
Joined: Tue Aug 31, 2004 4:00 am
Location: Austria/Europe

Print multiple charts on multiple pages including preview???

Post by Alex » Tue Feb 01, 2005 12:56 pm

Dear Support,

How can I print two Tcharts, each on a new page (Tchart1 on page 1, Tchart2 on page 2).
Is there a way to catch the print event using a handler, and placing the chart output manually on the page?
e.g. idea like this:

Code: Select all

select case page
case 0
   tchart1.print(e)
   e.graphics. ...
       .....adding a lot of additional objects
   e.hasmorepages=true
case1
   tchart2.print(e)
   e.graphics. ...
        .....adding a lot of different additional objects
end select
page +=1
The result should be a way to place e.g. 4 charts on page 1, 10 charts on page 2, and so on... (including user defined graphic objects, depending on the actual page number).

Thanks in advance!

Regards

Alex

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Feb 01, 2005 4:11 pm

Hi, Alex.

One way to print multiple charts per page is to use the following code:

Code: Select all

Steema.TeeChart.Printer pt = new Steema.TeeChart.Printer(tChart1.Chart);
pt.BeginPrint();
pt.Print(tChart1.Chart,new Rectangle(0,0,1000,500));
pt.Print(tChart2.Chart,new Rectangle(0,500,1000,1000));
pt.EndPrint();
There are other methods which you could use, some of them will be added for next major TeeChart .Net release.
Marjan Slatinek,
http://www.steema.com

Alex
Newbie
Newbie
Posts: 38
Joined: Tue Aug 31, 2004 4:00 am
Location: Austria/Europe

Post by Alex » Tue Feb 01, 2005 4:44 pm

Hi Marjan,

thanks for the fast answer. I know this method, but don't know how to print on multiple pages using this method. And also I don't know how to print preview these multiple pages using this method.
Like I described the usual way to do is using the printdocument in combination with the e.hasmorepages=true. But how to add the tchart graphic to the graphics object?

Is there a way to do this, or is the actual Tchart.NET version limited to print multiple charts on a single page?

What other methods do exist?

Thanks!

Alex

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Feb 09, 2005 6:40 am

Hi Alex,

this feature (print the Chart in multiple pages ) still not available in the latest maintenance release available. However it will be added in one of the next releases.

Alex
Newbie
Newbie
Posts: 38
Joined: Tue Aug 31, 2004 4:00 am
Location: Austria/Europe

Post by Alex » Tue Feb 15, 2005 3:29 pm

Hi Pep, hi all!

if someone needs to do printing on multiple pages, the solution is in the thread "print axv7 using print document" -> streaming the chart image.
Pep gave me a hint in that thread.

Best regards

Alex

Post Reply