Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using C# .NET How Do You Shoe Excel Files?

Posted on 2013-11-15
2
Medium Priority
?
270 Views
Last Modified: 2013-11-18
I have a saved Excel file and using C# .NET I need to launch it on a button click.  How can this be done?

Thanks,

Dan
0
Comment
Question by:danielolorenz
2 Comments
 
LVL 41

Assisted Solution

by:Kyle Abrahams
Kyle Abrahams earned 1000 total points
ID: 39652056
You can use the process.Start for that
http://www.dotnetperls.com/process-start

or you can use the interop classes (video contains instructions on how to do this):
http://www.youtube.com/watch?v=TjaBWsEmbT8

Note you can use this in a windows form just as well as a console application

If you wanted to choose the file, you would use a OpenFileDialog:
http://msdn.microsoft.com/en-us/library/aa984392(v=vs.71).aspx
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 1000 total points
ID: 39653274
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

927 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