• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 915
  • Last Modified:

excel file inside a visual basic project

Let me try to explain my problem, be patient I dont speak english very well

Im doing a Visual Basic project where I use two excel files.

The user can send information to this files and save the files as a new file with his information with format, etc...

Right now this two excel files are in "c:\temp\"

I dont need to create a new excel file everytime that my user wants his information saved in a file

I would like to know how to add this file inside my project, to allow that when the system is installed this two files goes with the installatio too

Best Regards
1 Solution
in visual studio right click your application...
Choose option Add existing item for each one (excel file)
altariamx2003Author Commented:

I tried that, but when I publish the project and after I install the system I cannot find the excel file
There is one more thing you need to do.  Right click on the Excel file within Explorador de soluciones and then select Properties.  You should see a setting that in English says "Copy to Output directory".  By default it will be set to "Do not copy".  Change this to "Copy if newer".
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

>to allow that when the system is installed this two files goes with the installatio too

Do you have a deployment project as well?
If you have a deployment project, the .xls files will be automatically deployed to the project's output directory (same directory as the .exe / .dll)

Can you now see the .xls files?
altariamx2003Author Commented:
thanks Hairbrush, your are a master!!!!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now