Load Picture Into report background

Hi.I wanna load a picture into background of my report.
i know that i can do with backpicture property of report. but i wanna load picture from a database and load into report.
i try with this code but i get AV Exeption.

procedure TDmFastReport.FRxreportAfterPrint(Sender: TfrxReportComponent);
begin
TfrxReportPage(sendeR).BackPicture.LoadFromFile('f:\Test.jpg');
end;

thanks.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 2:09AM
    first you are in the wrong event
    from delphi
    after loading a report and before calling any method to run the report
    get the designpage and set its backpicture property
    read the programmers manual on accessing the report designpage

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.