Problems loading images and MasterData

edited 8:19PM in FastReport 3.0
Hi again,

I have the following problem:

I am using a database that contain several fields, and one of them is the name of the image file that I need to put on every page generated on fast report.

I have made 3 bands, header, masterdata and footer.

I have linked masterdata do dbdataset of the table in question.

I have putted one frxPictureView.

I the masterdata Events, on "OnBeforePrint" i've made one routine that will loadfromfile the contents of the file that is inside one of the fields on this table.

The problem is that it seems that the OnBeforePrint is not getting the new data from the fields, and if i put frxMemoView inside the masterdata linked with the dataset and field, it changes on every generated page.

Why isnt this working. If it is OnBeforePrint, the fields on every page have new contents.

Thanks,
Paulo Vaz

Comments

  • edited 8:19PM
    In the band.OBP event place the following code:
    Picture1.LoadFromFile(<Table1."Field1">);
    it should work.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.