Multipage Chart exported to PDF

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
ipasuser
Newbie
Newbie
Posts: 9
Joined: Wed Nov 14, 2007 12:00 am

Multipage Chart exported to PDF

Post by ipasuser » Thu Nov 15, 2007 7:56 am

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.

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Thu Nov 15, 2007 10:46 am

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;
        }
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply