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?
Exporting to PNG files
-
- Newbie
- Posts: 30
- Joined: Tue Dec 28, 2004 5:00 am
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Normand,
It works fine for me here using TeeChart Pro v7.07 VCL and the code below. Which TeeChart version are you using?
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 30
- Joined: Tue Dec 28, 2004 5:00 am
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Normand,
Then can you please try if v7.07 works fine at your end?
Thanks in advance.
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 30
- Joined: Tue Dec 28, 2004 5:00 am
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |