Working with win app

  • Thread starter Thread starter Andres
  • Start date Start date
A

Andres

I´m working with C#. And my question is:
How can i open a file with its win application?. For
example open a word file with MS Word? or an excel file
with MS excel?
Thanks.
 
Use the Process class. If you set it to the file you want to open (eg.
mydoc.doc) and you have its ProcessStartInfo.UseShellExecute property set to
true (which is the default), it'll open the file in what ever application
that file type has associated with in the OS (eg MS Word).


I´m working with C#. And my question is:
How can i open a file with its win application?. For
example open a word file with MS Word? or an excel file
with MS excel?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top