Save charts to an existing PDF

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
David C.
Newbie
Newbie
Posts: 6
Joined: Mon Jun 18, 2018 12:00 am

Save charts to an existing PDF

Post by David C. » Tue Jun 18, 2019 1:25 pm

Hello,

How do I add a chart to an existing PDF using TeeSaveToPDFFile?

I want to create several charts, one at a time, and add them to the same PDF.

Thanks,

Dave

David C.
Newbie
Newbie
Posts: 6
Joined: Mon Jun 18, 2018 12:00 am

Re: Save charts to an existing PDF

Post by David C. » Wed Jun 26, 2019 3:04 pm

Anyone have suggestions on how to do this? A different tool perhaps?

One of our customers wants the ability to export several graphs into the same PDF.

Thanks,

Dave

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

Re: Save charts to an existing PDF

Post by Yeray » Thu Jun 27, 2019 10:04 am

Hello,

This sounds exactly as the feature request in the ticket #1473.
Feel free to add your mail to the CC list.
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

David C.
Newbie
Newbie
Posts: 6
Joined: Mon Jun 18, 2018 12:00 am

Re: Save charts to an existing PDF

Post by David C. » Fri Jun 28, 2019 7:53 pm

Thanks Yeray.

It looks like this request goes back to 2016. Do you know if this Is a feature that is to be added soon? If not, I will look for another solution.

Dave

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

Re: Save charts to an existing PDF

Post by Yeray » Mon Jul 01, 2019 11:24 am

Hello,

We've just added a new AddPanel function that allows you to add several charts to pdf to be created.
So, with the next release, it will be possible to do this:

Code: Select all

  with TPDFExportFormat.Create do
  try
    for i:=0 to High(Charts) do
      AddPanel(Charts[i]);

    SaveToFile(fileName);
  finally
    Free;
  end;
Here the resulting pdf:
Chart1.zip
(14.82 KiB) Downloaded 676 times
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

David C.
Newbie
Newbie
Posts: 6
Joined: Mon Jun 18, 2018 12:00 am

Re: Save charts to an existing PDF

Post by David C. » Wed Jul 03, 2019 3:45 pm

Yeray,

Excellent! It works perfectly!

Thanks for all your help.

Dave

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

Re: Save charts to an existing PDF

Post by Yeray » Thu Jul 04, 2019 7:38 am

Great! Thanks for the feedback!
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