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

excel file inside a visual basic project

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

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
0
altariamx2003
Asked:
altariamx2003
1 Solution
 
plusone3055Commented:
in visual studio right click your application...
Choose option Add existing item for each one (excel file)
0
 
altariamx2003Author Commented:
example.jpg

I tried that, but when I publish the project and after I install the system I cannot find the excel file
0
 
HairbrushCommented:
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".
Copy-file-into-bin.PNG
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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

Do you have a deployment project as well?
0
 
HairbrushCommented:
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?
0
 
altariamx2003Author Commented:
thanks Hairbrush, your are a master!!!!
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

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