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:44AM
    In script code:
    procedure Picture1OnBeforePrint(Sender: TfrxComponent);
    begin
    Picture1.LoadFromFile('c:\windows\1.bmp');
    end;
    
  • edited 2:44AM
    Thanks Den!! It works very good!! ;)
  • edited 2:44AM
    ;) 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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.