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

Comments

  • PolomintPolomint Australia
    edited December 2016
    G'day Kersten (and Happy New Year)!

    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!
  • edited 1:49AM
    Hello Polomint,
    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

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.