Critical Issue with latest 2010 update and PngComponents

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
johnnix
Advanced
Posts: 192
Joined: Tue Jul 10, 2007 12:00 am

Critical Issue with latest 2010 update and PngComponents

Post by johnnix » Sat Oct 16, 2010 10:43 am

Hello,

After I updated my 2010 evaluation for Delphi XE to the latest update I cannot assign a png image to any of the PngComponents from the designer (I get an invalid graphic format error). If I do not load TChart Components everything works ok... Can anybody please give me some hints on how to make this work as a lot of errors suddenly appeared with this update and this is most annoying :(

Regards
Attachments
Untitled-1.gif
Untitled-1.gif (8.94 KiB) Viewed 13845 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Critical Issue with latest 2010 update and PngComponents

Post by Narcís » Mon Oct 18, 2010 8:42 am

Hi johnnix,

It could be related to the fact that in this release PNGImage unit was renamed to TeePNGImage to avoid name conflicts with existing PNGImage unit as discussed here. Do you have those packages enabled? Have you changed unit references in your project if necessary?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

johnnix
Advanced
Posts: 192
Joined: Tue Jul 10, 2007 12:00 am

Re: Critical Issue with latest 2010 update and PngComponents

Post by johnnix » Mon Oct 18, 2010 8:51 am

Hello Narcis,

Thank you for your reply. Ok, I had installed PngComponents fro Delphi 2010 and there was no issue with the evaluation version of TeeChart 2010. The error appeared after I installed the latest official release. I did not change any unit references so can you please help me on what I am looking for? Which packages are you referring too?

Regards

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Critical Issue with latest 2010 update and PngComponents

Post by Narcís » Mon Oct 18, 2010 9:08 am

Hi johnnix,

Do you have TeeMaker package enabled at Project -> Options -> Packages? TeeMaker is the package that includes TeePNGImage.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

johnnix
Advanced
Posts: 192
Joined: Tue Jul 10, 2007 12:00 am

Re: Critical Issue with latest 2010 update and PngComponents

Post by johnnix » Mon Oct 18, 2010 9:19 am

Hello,

Yes, TeeMaker is enabled. What else could be wrong? :(

Regards

johnnix
Advanced
Posts: 192
Joined: Tue Jul 10, 2007 12:00 am

Re: Critical Issue with latest 2010 update and PngComponents

Post by johnnix » Mon Oct 18, 2010 9:26 am

Hello Narcis,

If I disable TeeMaker package and create a new VCL project and add aTPngBtiBtn, then I can add a png image to a . If I then add a TChart component I can no longer add a png image (Get that invalid format error)

Regards

johnnix
Advanced
Posts: 192
Joined: Tue Jul 10, 2007 12:00 am

Re: Critical Issue with latest 2010 update and PngComponents

Post by johnnix » Mon Oct 18, 2010 12:01 pm

Hello Narcis,

Can you reproduce this error?

Regards

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Critical Issue with latest 2010 update and PngComponents

Post by Narcís » Mon Oct 18, 2010 1:06 pm

Hi johnnix,

Does this only occurs with PNGImage components? I can set a PNG file as a TChart BackImage here.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

johnnix
Advanced
Posts: 192
Joined: Tue Jul 10, 2007 12:00 am

Re: Critical Issue with latest 2010 update and PngComponents

Post by johnnix » Tue Oct 19, 2010 5:11 am

Hello Narcis,

The problem is not with TChart but with TPngBitBtn! I cannot assign a png to TPngBitBtn any more so I was hoping you could give me some hint (remember it worked ok with the evaluation version)

Regards

johnnix
Advanced
Posts: 192
Joined: Tue Jul 10, 2007 12:00 am

Re: Critical Issue with latest 2010 update and PngComponents

Post by johnnix » Tue Oct 19, 2010 5:22 am

Hello Narcis,

Ok, I found a solution! In PngFunctions use:

Code: Select all

initialization
  TPicture.RegisterFileFormat('PNG', 'Portable Network Graphics', TPNGObject);
Regards

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Critical Issue with latest 2010 update and PngComponents

Post by Narcís » Tue Oct 19, 2010 7:23 am

Hello johnnix,

Thank you very much for your feedback, I'm glad to hear you found a solution to the issue.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply