Cannot print TeeChart in color to pdf

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Hally Holy
Newbie
Newbie
Posts: 1
Joined: Fri Nov 30, 2012 12:00 am

Cannot print TeeChart in color to pdf

Post by Hally Holy » Tue Dec 18, 2012 2:59 pm

Hi!

When I try to print TeeChart to pdf I get the chart in black and white but when I print it to a printer the chart will get its colors.

My version of TeeChart is "TeeChart Pro v2012.05.120327 32bit VCL". I develop in Embarcadero's Delphi XE2 Update 4.

Any help would be Appreciated

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

Re: Cannot print TeeChart in color to pdf

Post by Yeray » Thu Dec 20, 2012 11:51 am

Hi Hally,

Have you tried it with the actual version v2012.07?
The following code produces a correct colored pdf file for me:

Code: Select all

uses VCLTee.Series, TeePDFCanvas;

procedure TForm1.FormCreate(Sender: TObject);
begin
  with Chart1.AddSeries(TBarSeries) do
  begin
    FillSampleValues;
    ColorEachPoint:=true;
  end;

  TeeSaveToPDFFile(Chart1, 'C:\tmp\PDF_test1.pdf');
end;
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