Page 1 of 1

Print multiple charts on multiple pages including preview???

Posted: Tue Feb 01, 2005 12:56 pm
by 9523802
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

Posted: Tue Feb 01, 2005 4:11 pm
by Marjan
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.

Posted: Tue Feb 01, 2005 4:44 pm
by 9523802
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

Posted: Wed Feb 09, 2005 6:40 am
by Pep
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.

Posted: Tue Feb 15, 2005 3:29 pm
by 9523802
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