load picture at BeforePrint

mierlpmierlp Netherlands
edited 8:02PM in FastReport 3.0
hi,

i've created a report and it contains an picture object.
Which syntax do i need to load a picture before the
report is printed.

i can't figure it out...is it something like

frxReport_contract.pages[1] .....

greetz Peter

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:02PM
    use the report components on before print event at delphi level.
    it returns the sender for every object in the report.
    begin
    if sender.name := 'Picture1' then
    tfrxpictureview(sender).picture.loadfromfile('path&filename');
    end;

Leave a Comment