Change name picture
HJi
I find the method to change the picture name inside my report with dephi XE2 code.
my code
var
PictureView: TfrxPictureView;
Image: TImage;
frxReport1: TfrxReport;
begin
....
...
image:=' c:\rep\logo.jpg'; //<<<<................ error here
PictureView := frxReport1.FindObject('Picture1') as TfrxPictureView;
PictureView.Picture := Image.Picture;
I have error
Thank you for your help
Mario
I find the method to change the picture name inside my report with dephi XE2 code.
my code
var
PictureView: TfrxPictureView;
Image: TImage;
frxReport1: TfrxReport;
begin
....
...
image:=' c:\rep\logo.jpg'; //<<<<................ error here
PictureView := frxReport1.FindObject('Picture1') as TfrxPictureView;
PictureView.Picture := Image.Picture;
I have error
Thank you for your help
Mario
Comments
Use
TfrxPictureView(frxReport1.FindObject('Picture1')).Picture.LoadFromFile(' c:\rep\logo.jpg');
Thank you
Your anwser was very good
I very appr?©ciate jour help.
Thank again
Mario