Image in TppImage Is wiped out when saved
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
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
This discussion has been closed.
Comments
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
Thanks!