PNG image is not printed when converting from RB14 to RB19
Hi,
Strange thing. Reports are created in RB14.08. Application is compiled with Delphi 2007. Reports are stored in the database.
As addon an application is created using RB19.04 and Delphi 10.1 Berlin.
When a report that contains a PNG image is printed using the RB19 app (and created with the RB14,D2007 app), this image is not shown.
In D2007 I use the PNG classes from DevExpress. In D10.1 I don't have DevExpress installed and thought the default TPNGImage would handle this but it doensn't.
Printing an report with png created in RB19 and printed with the same version is working fine.
How can this be solved?
Strange thing. Reports are created in RB14.08. Application is compiled with Delphi 2007. Reports are stored in the database.
As addon an application is created using RB19.04 and Delphi 10.1 Berlin.
When a report that contains a PNG image is printed using the RB19 app (and created with the RB14,D2007 app), this image is not shown.
In D2007 I use the PNG classes from DevExpress. In D10.1 I don't have DevExpress installed and thought the default TPNGImage would handle this but it doensn't.
Printing an report with png created in RB19 and printed with the same version is working fine.
How can this be solved?
Kind regards,
Jeroen Röttink
JR-soft software solutions
Jeroen Röttink
JR-soft software solutions
Comments
You'll need to edit the old templates as text and replace the DevEx PNG class name with the Delphi PNG class name.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
But the Picture.Data property seems encoded. It starts with I send an example to support@
Jeroen Röttink
JR-soft software solutions
RB relies upon Delphi TPicture.
I reviewed the Delphi TPicture source code. It contains logic to write Picture.Data as an internal binary property. The logic writes the graphic ClassName followed by image stream. So not a flexible solution. They should have written the file extension followed by image stream.
Here's a work around...
Update: I found the sample .rtm you emailed to support@ and the above code works.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Thanks for the nice work around. It works perfect!
Jeroen Röttink
JR-soft software solutions