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.
 
Back
Top