Click here to Skip to main content
15,905,414 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hai all

can u plz help me with code for opening a saved word file.

i want the word file to be open in one click...




thanks in advance
Posted

 
Share this answer
 
Comments
Simon Bang Terkildsen 3-Oct-11 1:50am    
My 5, though I prefer to stay far away from office interop :D
CodingLover 3-Oct-11 1:52am    
Office interop is quite complex in situations like this. So better to avoid them as much as possible.
Process.Start[^] would be an alternative to CodingLover's suggestion.
E.g.
C#
Process.Start(@"C:\documents\word.docx")
 
Share this answer
 
Comments
CodingLover 3-Oct-11 1:53am    
For the moment I forget it. Because I already open my MSDN window when I see this question for the first time. ;)
Simon Bang Terkildsen 3-Oct-11 1:59am    
XD
Ragi Gopi 3-Oct-11 2:13am    
thank u.....
very much
Simon Bang Terkildsen 3-Oct-11 2:16am    
You're welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900