Exporting to PNG files

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Normand Peladeau
Newbie
Newbie
Posts: 30
Joined: Tue Dec 28, 2004 5:00 am
Contact:

Exporting to PNG files

Post by Normand Peladeau » Wed Jun 28, 2006 10:19 pm

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 29, 2006 8:50 am

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;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Normand Peladeau
Newbie
Newbie
Posts: 30
Joined: Tue Dec 28, 2004 5:00 am
Contact:

Post by Normand Peladeau » Thu Jun 29, 2006 11:37 am

narcis wrote:Hi Normand,

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 29, 2006 11:58 am

Hi Normand,

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

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Normand Peladeau
Newbie
Newbie
Posts: 30
Joined: Tue Dec 28, 2004 5:00 am
Contact:

Post by Normand Peladeau » Sun Jul 02, 2006 1:14 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jul 03, 2006 8:08 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply