Picture from file (dinamic)

edited 5:43PM in FastReport 3.0
Let's say I have a folder C:\pic\
full of images called:
1.jpg
2.jpg
etc

Now how could I get those images automatically into my report.

Note: I do not wish to save them into a database.


Please help.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 5:43PM
    assuming a picture view object is some where in the report

    procedure TForm1.frxReport1BeforePrint(Sender: TfrxReportComponent);
    begin
    if Sender.Name='Picture1'then
    TfrxPictureView(Sender).Picture.loadfromfile('pathname+filename');
    end;
    ;)

Leave a Comment