Page 1 of 1

Catastrophic failure trying to export PNG in ASP.NET

Posted: Wed Mar 24, 2004 11:54 am
by 6927410
Hello.

I am having problems at one of my customers site. The ASP.NET app is using AX V.5 pro and can export Native to stream but not PNG. Both of the following line results in this error:

Return CType(mChart.Export.asPNG.SaveToStream, Byte())

mChart.Export.asPNG.SaveToFile(imgName)

The latter creates a empty file (0 bytes)

I have the same app working on my development machine (XP Pro) and one Win 2003 server, but at the customers site, neither of these work. The following does work:

Return CType(mChart.Export.asNative.SaveToStream(True), Byte())

What can be the problem here???

Exporting to Gif works but Png not!

Posted: Wed Mar 24, 2004 1:19 pm
by 6927410
I have made the ASP.NET app configurable to use either gif or png and the Gif. The Gif works fine but the Png not! Is this a bug?

Posted: Mon Apr 05, 2004 5:24 pm
by Pep
Hi Ragnar,

TeeChart Pro AX uses a dynamic link library, Lpng.dll to facilitate export to PNG format graphic files. The DLL is included with the TeeChart installer and is installed to the Windows\System[32] folder at installtime.
Version information may be found at http://www.libpng.org/.

If you are using TeeChart on a machine that doesn't have LPNG.DLL installed then you will need to install it.