Link to home
Start Free TrialLog in
Avatar of altariamx2003
altariamx2003Flag for Mexico

asked on

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
Avatar of plusone3055
plusone3055
Flag of United States of America image

in visual studio right click your application...
Choose option Add existing item for each one (excel file)
Avatar of altariamx2003

ASKER

example.jpg

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".
Copy-file-into-bin.PNG
Avatar of Nasir Razzaq
>to allow that when the system is installed this two files goes with the installatio too

Do you have a deployment project as well?
ASKER CERTIFIED SOLUTION
Avatar of Hairbrush
Hairbrush
Flag of Jersey image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks Hairbrush, your are a master!!!!