Use config file in stead of changing registry

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • msjonathan
    New Member
    • Dec 2009
    • 24

    Use config file in stead of changing registry

    hi,

    I am writing an reader/writer of excel files. Here for I use OLEDB to read excel files.
    To read them I use in my connection string IMEX = 1. So I have to change the Registry key: TypeGuessRows HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Jet\4.0 \Engines\Excel and HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Office\ 12.0\Access Connectivity Engine\Engines\ Excel sections

    I looked it up but and it's easy to change keys in the registery. But I am not quite comfortable with changing the keys. (It should be installed on pc's of customers, and I do not want to change their registry).

    So I am wondering if I can use a config file or something else to store that key? And how I have to use that file.

    I would be very grateful if somebody could help me :)

    Greetz,

    Jonathan
Working...