Help - Search - Members - Calendar
Full Version: Load Picture Into report background
Fast Reports forum > Fast Reports Products > FastReport 4.0
Hamidreza
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.
gordk
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.