Print multiple graphs to a PDF

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Dave C.
Newbie
Newbie
Posts: 3
Joined: Wed Jul 18, 2012 12:00 am

Print multiple graphs to a PDF

Post by Dave C. » Mon May 27, 2013 3:22 pm

Hello,

I want to print multiple selected bar charts to a PDF. To print multiple selected bar charts to a printer I use:

Code: Select all

  if PrintDialog1.Execute then
  begin
   //If only one selection, print the current bar chart
    if Tree.SelectionCount=1 then
      Graph.PrintLandscape
    else
    begin
      //For mulitple selections, get each selection, graph & print
      for i := 0 to Tree.SelectionCount-1 do
      begin
        GetItemAndGraph(Tree.Selections[i].Text);
        Graph.PrintLandscape;
      end;
  end;
where GetItemAnfGraph just gets the item and displays the graph so that it can be printed. This works great for printing, but does not work when writing to a PDF as the PDF get overwritten.

Is there a way to Append to an existing PDF or some other technique that would enable me to print multiple selected bar charts to a PDF?

Thanks!

Dave

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

Re: Print multiple graphs to a PDF

Post by Yeray » Tue May 28, 2013 2:35 pm

Hi Dave,

Have you seen this thread?
http://www.teechart.net/support/viewtop ... pdf#p45008
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