TeeSaveToPNG: generated images black

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
de_ouwej
Newbie
Newbie
Posts: 7
Joined: Wed Mar 07, 2007 12:00 am

TeeSaveToPNG: generated images black

Post by de_ouwej » Tue Jan 18, 2011 12:03 pm

Hi all,

In my company's software, there's one (TeeChart related) bug that has been bothering us for a long time now. Our software generates HTML management reports, and for this, large batches of graphs have to be generated. It does this by building the charts using TeeChart, and then exporting them with the TeeSaveToPNG() method.

The problem is that many of the images come out completely black, with a band of randomly colored pixels at the bottom (see attachment). These colored pixels are different in each image. This, however, doesn't always occur. It happens with about half of our clients, and with those clients, about 30-50% of the images come out black.

Our software:
- C++ Builder 2007
- TeeChart 7.12
- Windows XP Professional


I can't figure out how to reproduce this on my own machine, nor can I see any common factor with our clients that might be causing this issue. Any ideas, anyone? Maybe there's a certain library/DLL that TeeChart relies on that is different or faulty at some of our clients' servers?

Kind regards,

Hugo de Jong
Attachments
Det1_20110102_20110103.png
Example image
Det1_20110102_20110103.png (3.6 KiB) Viewed 3731 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TeeSaveToPNG: generated images black

Post by Yeray » Wed Jan 19, 2011 2:21 pm

Hi Hugo,

For IDE versions prior to RAD Studio 2009, the LPNG.dll is required in \Windows\System or \Windows\System32 folder. Could you please check if you have it?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

de_ouwej
Newbie
Newbie
Posts: 7
Joined: Wed Mar 07, 2007 12:00 am

Re: TeeSaveToPNG: generated images black

Post by de_ouwej » Thu Jan 20, 2011 9:06 am

Hi Yeray,

The LPNG.dll file is present in the application directory instead of in the %windir%/System32 or %windir%/system folders. Is this a problem? I will try to find out whether the issue is caused by different versions of LPNG.dll.

Kind regards,

Hugo de Jong

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TeeSaveToPNG: generated images black

Post by Yeray » Fri Jan 21, 2011 10:43 am

Hi Hugo,

You could try copying it to the system and system32 folders to see if it solves the problem.
If this doesn't solve the problem, if you have access to one of these "problematic" machines, please, try to arrange a simple example project we can run as-is here; a project that reproduces the problem in that machine consistently, if possible.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply