How to read registry-values
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.
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.
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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.
****
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
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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.
****
.