Installation and file path

  • Thread starter Thread starter Prasun
  • Start date Start date
P

Prasun

Hello:

My program displays a Datagrid which is populated from an excel file. It is
done to show the end user a sample file. How can I reference the excel file
in the program connection string so that it can read it from the application
folder after install. I guess my question would be, how do i make it
independent of the path the user chooses to install the program.

Thank You
Prasun
 
Hi,

If you need to load from the same where application is, then just skip the
path at all, but I would suggest to create some sort of settings screen
where client could specify default path. Store this information into
registry or some sort of configuration file (for example XML) and use these
settings. It would give you much more flexibility
 
Back
Top