Problems loading images and MasterData
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
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
Picture1.LoadFromFile(<Table1."Field1">);
it should work.