Page 1 of 1

Paginating Tchart

Posted: Fri May 25, 2012 7:32 am
by 15660116
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?

Re: Paginating Tchart

Posted: Fri May 25, 2012 11:41 am
by 10050769
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,

Re: Paginating Tchart

Posted: Fri May 25, 2012 1:28 pm
by 15660116
Probably simpler to place the tchart on a form and print the form. A spreadsheet or web form would be even better.

Re: Paginating Tchart

Posted: Fri May 25, 2012 1:35 pm
by narcis
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!