Environments Variables
Hello,
I use FR 5.5 under Windows 7 Professional and would like to read windows environments variables like %userprofile%.
Is that possible? If so, how does it work?
Thanks
Kersten
I use FR 5.5 under Windows 7 Professional and would like to read windows environments variables like %userprofile%.
Is that possible? If so, how does it work?
Thanks
Kersten
Comments
Have you looked at the FR Programmer's Manual **? There's a whole section on how you set-up your own variables in Delphi or C++, and then it's just a matter of calling GetEnvironmentVariable within that code to return the values, when your report references the variables.
We use this technique to populate our report footers with version information...
Cheers, Paul
** Sorry I've mislaid the link to the FR5 manual [img]style_emoticons/<#EMO_DIR#>/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> PS Oh and look at the[/img] FR User Manual for how you reference variables in your report!
Thank you for your quick response. Unfortunately she does not help me yet.
I have no Delphi- or C++ - enviroment, but a finished application with an embedded FR 5.5.
If I try the call GetEnvironmentVariable in the script, I get the message that this is an undefined identifier.
Happy New Year
Kersten