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

Image in TppImage Is wiped out when saved

edited September 2010 in General
Hello,

We have RB 10.08 with Delphi 7. Out customer has RTM files created with RB
10.04 and we are needing to upgrade those template to RB 10.08. Since there
so many was have created a program to upgrade them using
TppReportTemplate.LoadFromStream and TppReportTemplate.SaveToStream. The
problem is that when an TppImage object contains an image, the image is
wiped out from the template. We've tried TppReportTemplate.LoadFromFile and
TppReportTemplate.SaveToFile and still it does the same.

The code is simply like this:

FReport.Template.FileName := FileName;
FReport.Template.LoadFromFile;
FReport.Template.SaveToFile;

Is there anything we can do about this?

Thanks,
Shoji Kaburagi
Senior Software Developer
Netsmart Technologies
skaburagi@ntst.com

Comments

  • edited September 2010
    If the report definitions contain images with graphic type other than Bmp,
    make sure the conversion app includes ppJPEG, ppGIF in the uses clause.

    RB 10.08 can open and run the RB 10.04 reports (RB 12 can open and run them
    too). The version number is stored with the report definition, perhaps that
    is why you are updating them.


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



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2010
    Sure thing. It worked.

    Thanks!

This discussion has been closed.