Page 1 of 1

Multipage Chart exported to PDF

Posted: Thu Nov 15, 2007 7:56 am
by 13047369
Hi TeeChart Team,

we are using TeeChart for .Net V3. Are there any possiblities to make a
multipage chart and export it to one pdf file? If yes, please provide us
a sample application or sample code.

Thanks in advance.

Posted: Thu Nov 15, 2007 10:46 am
by yeray
Hi ipasuser,

At this moment it's not possible to add a new pdf to an existing one, but you can concatenate several pdfs manually using Adobe tools while we consider to add this feature to TeeChart.
By the while, I've added it to our wish-list to be enhanced in future releases (TF02012589).

Here is how you could export each page to a pdf file:

Code: Select all

private void button1_Click(object sender, EventArgs e)
        {
            int tmp = tChart1.Page.Current;
            
            for (int i = 1; i <= (tChart1.Series[0].Count / tChart1.Page.MaxPointsPerPage);i++ )
            {
                tChart1.Page.Current = i;
                tChart1.Export.Image.PDF.Save("page" + i.ToString() + ".pdf");
            }

            tChart1.Page.Current = tmp;
        }