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.
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
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