?
Solved

excel file inside a visual basic project

Posted on 2011-02-14
6
Medium Priority
?
908 Views
Last Modified: 2012-05-11
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
Comment
Question by:altariamx2003
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 22

Expert Comment

by:plusone3055
ID: 34891591
in visual studio right click your application...
Choose option Add existing item for each one (excel file)
0
 

Author Comment

by:altariamx2003
ID: 34893421
example.jpg

I tried that, but when I publish the project and after I install the system I cannot find the excel file
0
 
LVL 12

Expert Comment

by:Hairbrush
ID: 34895183
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34895981
>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
 
LVL 12

Accepted Solution

by:
Hairbrush earned 2000 total points
ID: 34896086
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
 

Author Closing Comment

by:altariamx2003
ID: 34904098
thanks Hairbrush, your are a master!!!!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question