Paginating Tchart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Paginating Tchart

Post by lilo » Fri May 25, 2012 7:32 am

I need to print a Tchart over several pages. If I set the height of the Tchart to a large value, such as 3000 pixels, can I get the Tchart to print with several pages? At present, a Tchart with large dimensions will only print entirely on one page?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Paginating Tchart

Post by Sandra » Fri May 25, 2012 11:41 am

Hello lilo,

One solution might be to divide the bottom axis range in n equal sections and then use the bottom axis SetMinMax method to limit the region chart is displaying. Then use TChartAxis.SetMinMax to define chart section and export each "page" to pdf file and after print it.

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Re: Paginating Tchart

Post by lilo » Fri May 25, 2012 1:28 pm

Probably simpler to place the tchart on a form and print the form. A spreadsheet or web form would be even better.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Paginating Tchart

Post by Narcís » Fri May 25, 2012 1:35 pm

Hi lilo,

You could also select the region where do you want the chart printed or split it into several parts using Metafile exporting and PrintDocument as explained in those threads:

http://www.teechart.net/support/viewtopic.php?t=5756
http://www.teechart.net/support/viewtopic.php?t=5490

Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply