images in a report

edited January 2006 in FastReport 3.0
Hi, i want to know how can i add an image in a report, but not from a database. I want to add it from a file (.jpg) from my file system, always form the same path but i want it depends the pc users. I mean, i want to include an image from some path from the pc of the system users. Well, if you know please help me! ;)

Comments

  • edited 2:01PM
    In script code:
    procedure Picture1OnBeforePrint(Sender: TfrxComponent);
    begin
    Picture1.LoadFromFile('c:\windows\1.bmp');
    end;
    
  • edited 2:01PM
    Thanks Den!! It works very good!! ;)
  • edited 2:01PM
    ;) I, i have do do same think and the programmme send me the message:undeclared identifier : 'LoadFromFile'. And now ....?
  • edited January 2006
    Drop picture on the report and OnBeforePrintEvent(in script):
    procedure Picture1OnBeforePrint(Sender: TfrxComponent);
    begin
    Picture1.LoadFromFile('c:\windows\1.bmp');
    end;
    

Leave a Comment