how to load multiple pictures from file while generating simple list
Hi there,
I am trying to load pictures from a specific folder, the path of each one is stored in my database, the problem that not all records include a picture's path so I tried the following code in the onBeforePrint of the picture object event
this seems to work for the records having a valid path but the report keeps loading the last picture for all the records that don't have a valid picture's path.
can you help me to sort it out please
of course I am using delphi language
Regards,
Raul
I am trying to load pictures from a specific folder, the path of each one is stored in my database, the problem that not all records include a picture's path so I tried the following code in the onBeforePrint of the picture object event
...
if <frxDBDataset1."picturePath"> <> '' then
TfrxPictureView(sender).FileLink:= <frxDBDataset1."picturePath">;
...
this seems to work for the records having a valid path but the report keeps loading the last picture for all the records that don't have a valid picture's path.
can you help me to sort it out please
of course I am using delphi language
Regards,
Raul
Comments
to reset the filelink to nil if condition is not met on next iteration,
thank you so much, working like a charm with filelink set to nil not empty string in the else statement.
Regards,
Raul