Catastrophic failure trying to export PNG in ASP.NET

TeeChart for ActiveX, COM and ASP
Post Reply
Ragnar
Newbie
Newbie
Posts: 9
Joined: Fri Nov 15, 2002 12:00 am
Location: Iceland

Catastrophic failure trying to export PNG in ASP.NET

Post by Ragnar » Wed Mar 24, 2004 11:54 am

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???
Best Regards
Ragnar

Ragnar
Newbie
Newbie
Posts: 9
Joined: Fri Nov 15, 2002 12:00 am
Location: Iceland

Exporting to Gif works but Png not!

Post by Ragnar » Wed Mar 24, 2004 1:19 pm

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?
Best Regards
Ragnar

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Apr 05, 2004 5:24 pm

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.

Post Reply