BackPicture loading with script at run time
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
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
Comments
yes it is
BackPicturePrintable is also True
Those values were set via the Object inspector
Hi 'gordk,
THank you very much for your help. It is working now
Dominique