Page 1 of 1

Exporting to PNG files

Posted: Wed Jun 28, 2006 10:19 pm
by 9340420
I would like to export a chart into a PNG file name. I declared all the required unit and I already have a file name.

This procedure does not work. Obviously something is missing:

with TPNGExportFormat.Create do SaveTofile(Chart1,filename);

What is missing?

Posted: Thu Jun 29, 2006 8:50 am
by narcis
Hi Normand,

It works fine for me here using TeeChart Pro v7.07 VCL and the code below. Which TeeChart version are you using?

Code: Select all

uses TeePNG, TeExport; 

procedure TForm1.Button1Click(Sender: TObject);
begin
  with TPNGExportFormat.Create do SaveTofile(Chart1,filename);
end;

Posted: Thu Jun 29, 2006 11:37 am
by 9340420
narcis wrote:Hi Normand,

Which TeeChart version are you using?
Version 7.06. I always get an Access Violation error when calling this procedure.

Posted: Thu Jun 29, 2006 11:58 am
by narcis
Hi Normand,

Then can you please try if v7.07 works fine at your end?

Thanks in advance.

Posted: Sun Jul 02, 2006 1:14 pm
by 9340420
No luck! The problem still occurs in v7.07. Any suggestion on what I should try to do next?
narcis wrote:Hi Normand,

Then can you please try if v7.07 works fine at your end?

Thanks in advance.

Posted: Mon Jul 03, 2006 8:08 am
by narcis
Hi Normand,

It works fine for me here using v7.07 source code release compiling and installing the packages using the Recompile tool provided with the sources installer. Can you please check that TeeChart packages are properly upgraded at your IDE by right-clicking on a TChart component and selecting about? You should also check the search paths at Project\Options\Directories/Conditionals\Search Path.

If the problem persists, could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at news://www.steema.net/steema.public.attachments newsgroup.