TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
-
Markus76344
- Newbie
- Posts: 2
- Joined: Thu May 31, 2012 12:00 am
-
Contact:
Post
by Markus76344 » Thu May 31, 2012 3:19 pm
Hi,
we are getting an error, when we try to save a chart to jpg or to png using either
Code: Select all
TeeSaveToPNG(GlobalRPChart, ChartImageFile, 0, 0);
or
Code: Select all
TeeJPEG.TeeSaveToJPEGFile(GlobalRPChart, ChartImageFile, false, jpBestQuality, 100, 0, 0);
The error message is:
System Error. Code: 8. Not enough storage is available to process this command
The error occurs only on a
Windows Web Server 2008 R2 but not on other machines. Any idea?
Thanks and regards
Markus
-
Sandra
- Site Admin
- Posts: 3132
- Joined: Fri Nov 07, 2008 12:00 am
Post
by Sandra » Tue Jun 05, 2012 8:36 am
Hello Markus,
Sorry for the delay. We did some tests to try to reproduce your problem here, I am afraid we cannot reproduce your problem here and we have gotten good results making the test using last version of TeeChartVCL 2012 and Windows Server 2008 with next code:
Code: Select all
Uses TeePNG, Series;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.AddSeries(TBarSeries).FillSampleValues;
TeeSaveToPNG(Chart1, 'C:\tmp\Chart1.png', 0, 0);
end;
Can you please check if using my code appears your problem? If it works fine but using your application the problem persist, please send us a simple project where the problem appears so we can try to reproduce it here.
Thanks,
-
Markus76344
- Newbie
- Posts: 2
- Joined: Thu May 31, 2012 12:00 am
-
Contact:
Post
by Markus76344 » Tue Jun 05, 2012 12:37 pm
Hi Sandra,
ok but I am allready using the same procedure "TeeSaveToPNG" as you did. But our application is a web application compiled with Delphi XE2 and TChart 2012 Pro. But now I made a small offline app with exactly your code and it worked with no problem on that server. But with two restrictions:
1. It is an offline form based app not a web app
2. It was compiled with Delphi 2010
The latter because I am currently facing an error when I try starting an application with a TChart on a form in Delphi XE2. The exception is:
EFilerError: "Class with name TChartAxisTitle allready exists" (Translated from german)
Thanks again
Regards Markus
-
Sandra
- Site Admin
- Posts: 3132
- Joined: Fri Nov 07, 2008 12:00 am
Post
by Sandra » Wed Jun 06, 2012 7:29 am
Hello Markus,
Thanks for your information, but would be very helpful for us if you can send a simple project so we can reproduce your problem here to try to find a good solution for you.
Thanks,