Picture from file (dinamic)

edited 2:32PM 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 2:32PM
    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

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.