Load Picture to picture object during runtime
How to load a picture during runtime. Are there any function to retrieve the
path of the program?
I've tried the following:
Picture1.LoadFromFile('Config\picture1.jpg');
This works only if the current path is set to my program path
Juergen
path of the program?
I've tried the following:
Picture1.LoadFromFile('Config\picture1.jpg');
This works only if the current path is set to my program path
Juergen
Comments
use te report components onbefore print event.
in Delphi :
frxReport1.Variables:=''''+ExtractFilePath(ParamStr(0))+'''';
in FR :
Picture1.LoadFromFile(<MainPath>+'picture1.jpg');
Daniel
I thought that there are predefined variables/functions
in the script itself.