Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Missing images from older reports

edited September 2010 in General
Hello, in my project I have many reports generated by ReportBuilder 11 or
earlier.
Now some reports images are missing.

I have found the problem relates to reports containing PNG images.

When I opened previous version of DFM file, there are following picture
headers:

TDataModule
...
TppReport
Version = '11.07'
...
TppImage
...
Picture.Data = {
0A54504E474F626A656374...}

Current RB 12.01 uses picture header: 0954506E67496D616765

Translated to ascii, older reports uses #10'TPNGObject' (the depreceated
class), but new ones uses #9'TPngImage'.

Please, can you update the conversion procedure to simply update this
changed class automatically?

Steps to reproduce the problem:
1. Create an empty TDataModule with a simple TppReport containg a single
TppImage.
2. Load any PNG to the TppImage.
3. Open DFM code (Alt+F12)
4. Change report version to 11.07
5. Change any occurance of 0954506E67496D616765 to 0A54504E474F626A656374

Regards,
Igor Gottwald

Comments

  • edited September 2010

    What version of Delphi did you use to create the archive files? RB 11.07 +
    Delphi ?

    What version of Delphi are you using to read the archive files? RB 12.01 +
    Delphi ?


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.