TeeChart 7/Export

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Thomas Klingler
Advanced
Posts: 103
Joined: Tue Mar 02, 2004 5:00 am
Location: Bad Wurzach
Contact:

TeeChart 7/Export

Post by Thomas Klingler » Mon May 03, 2004 7:34 am

I'm trying to use the TeeExport function, eporting to VML format.
However, all series colors are black. How can I have the series colors from my chart?

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon May 03, 2004 9:40 am

Hi Neil,

which TeeChart Pro version and code are you using ?
I've tried with the following code (using the latest TeeChart Pro v7) and works as expected (adding three line series with FillSampleValues) :

Code: Select all

  if SaveDialog1.Execute then
  begin
    With TVMLExportFormat.Create do
    try
      Panel:=Chart1;
      SaveToFile(SaveDialog1.FileName);
    finally
      Free;
    end;
  end;

oddbjorn
Newbie
Newbie
Posts: 1
Joined: Wed Mar 31, 2004 5:00 am
Location: Norway

Post by oddbjorn » Tue May 04, 2004 9:06 am

Josep.

First. I logged on with my version 6 license number and password, and was automatically named Neil.

I use D5/TeeChart Pro v7.

The code I use is this:

TeeExport(Self, Chart);

When I select the "Picture as VML (HTM)" option and "Save" or "Send", the result is a browser page with all series colors black. (all other colors are there).

I will try your suggestion also, but I would prefer to use TeeExport function.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue May 04, 2004 9:55 am

Hi,
First. I logged on with my version 6 license number and password, and was automatically named Neil.
..hmm.. Strange..We'll verify to see whch can be the problem. Thanks for the advise.
When I select the "Picture as VML (HTM)" option and "Save" or "Send", the result is a browser page with all series colors black. (all other colors are there).
I've tried here using the TeeExport method and works fine. I simply have used the following code :

Code: Select all

uses TeExport,TeeVMLCanvas,TeeEditPro;

procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.FillSampleValues(10);
Series2.FillSampleValues(10);
end;

procedure TForm1.BitBtn1Click(Sender: TObject);
begin
TeeExport(Self,Chart1);
end;
Click in the Button and save. Then Open with IE and I'm able to see al the Series colors.

Have you tried to reproduce it in another machines ?
Could you please post an example in the steema.public.attachments newsgroups with which I can reproduce the problem "as-is" here ?

Post Reply