Solved

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

Posted on 2013-11-15
2
260 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 40

Assisted Solution

by:Kyle Abrahams
Kyle Abrahams earned 250 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 69

Accepted Solution

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now