Help - Search - Members - Calendar
Full Version: BackPicture loading with script at run time
Fast Reports forum > Fast Reports Products > FastReport 4.0
Domido
Hi,

I want to load a BackPicture at runtime using script
with the following code

procedure Page1OnBeforePrint(Sender: TfrxComponent);
begin
Page1.BackPicture.LoadFromFile('C:\Delphi Devel BGC\Ressources 2007\meca625NLweb.jpg');
Picture1.LoadFromFile('C:\Delphi Devel BGC\Ressources 2007\meca625NLweb.jpg');
end;

It works well for Picture1 but not for Page1.BackPicture nothing is displayed.
when I set a breakpoint before and after the LoadFromFile, I got a valid width and Height ...

Do I miss something ?

Thanks for your help


gordk
is backpicturevisible set to true.
Domido
QUOTE(gordk @ Feb 22 2010, 07:13 PM) *
is backpicturevisible set to true.


yes it is
BackPicturePrintable is also True
Those values were set via the Object inspector


gordk
do it in the empty "begin end." block of code that is the first script code to run.
Domido
QUOTE(gordk @ Feb 23 2010, 02:17 AM) *
do it in the empty "begin end." block of code that is the first script code to run.


Hi 'gordk,

THank you very much for your help. It is working now

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