Page 1 of 1

TeeChart 7/Export

Posted: Mon May 03, 2004 7:34 am
by 8443014
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?

Posted: Mon May 03, 2004 9:40 am
by Pep
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;

Posted: Tue May 04, 2004 9:06 am
by 9231955
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.

Posted: Tue May 04, 2004 9:55 am
by Pep
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 ?