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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top