Page 1 of 1

Cannot print TeeChart in color to pdf

Posted: Tue Dec 18, 2012 2:59 pm
by 16564311
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

Re: Cannot print TeeChart in color to pdf

Posted: Thu Dec 20, 2012 11:51 am
by yeray
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;