Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How to read registry-values

edited September 2003 in General
Hi!
I know there is no way to read in registry values in RB directly, but is
there another way to do this?
I have stored the name of the lisence owner in the registry, and I want it
to show on the report.

Can this be done, and what is the best way. I have RB 7 Ent.
Kind regards
TorB.

Comments

  • edited September 2003
    Hi Tor,

    You may be able to do this using Windows API calls in Delphi. Check out the
    Windows help on accessing the registry. Search on Registry Functions to see
    the group of functions available. Perhaps check out the RegOpenKeyEx, and
    RegQueryValueEx methods.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2003
    Hi Nico!
    Thank you for the answer, but maybe I should have been more spesific when
    asking the question.

    Sure I know how to read in registry values in Delphi, but when this is done
    and the value is placed in a variable in the program, what is the best way
    to transfer this value to f.i. a variable in a report? I use rtm-files. When
    I load these I want to have the name of the program owner on the report.
    Kind regards
    TorB.

    ****

  • edited September 2003
    Hi Tor,

    Sorry for the confusion. You might try checking out Report Parameters.
    Parameters have the ability of being saved as part of the report definition
    or template. Below is a small example of how Report Parameters can be used.

    http://www.digital-metaphors.com/tips/SimpleParameters.zip

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2003
    Hello Nico!
    This was just what I needed, and it solved all my "problems".
    I am learning more and more of the fantastic tool RB every day now, and I
    really like it!
    Thanks again!
    Kind regards
    TorB.

    ****
    .
This discussion has been closed.