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

Edititing Fieldvalue in Report after "LoadFromDatabase"

Hi Support-Forum,

thanks for the possibility to ask and discuss questions regarding ReportBuilder!

We load reports that the end user has created. Afterwords we use a separate program to print labels using "ppReport1.LoadFromDatabase". Now our customer has decided to work with graphic contents on the label and we have the problem to decide if the fieldname / filename is a jpg or a png file because all files are haveing the "jpg" extension.
We are able to decide between "jpg" and "png" programmatically but we want to give the renamed value back to the report picture without changing the database value.

Something like:
ppReport1.LoadFromDatabase("LabelWithPicture");
changedFileName := CheckIfFileJPGorPNG;
ppDetailband1.DBPicture.LoadFromFile(changedFileName);
ppReport1.Print;

Thanks for your suggestions to solve this problem!

Kind regards,

Michael

Comments

  • edited November 2023
    Good morning,

    any suggestions?

    Kind regards,

    Michael
Sign In or Register to comment.