0

Please bear with me, as I am a newbie c# coder, so this is probably a trivial question. I have successfully made a Word 2013 document template in it's own solution in VSTO. In a seperate solution, I have a WPF project containing a form that has a button. What I fail to understand is how I call/open the Word document from this button? What should I put in the Button_Click event?

Any help is greatly appreciated! Thank you. Regards from the wannabe

garry man
  • 445
  • 4
  • 14
  • 1
    Possible duplicate of [Programmatically Open Word Document Located in the Computer in C#](https://stackoverflow.com/questions/32816364/programmatically-open-word-document-located-in-the-computer-in-c-sharp) – garry man Dec 15 '18 at 16:34
  • thanks garry, it gets me half way, but as I mention my Word document reside inside a solution - not in a local folder. – wannabe GOAT Dec 15 '18 at 17:08
  • ok now I found a solution. I needed to publish the template project after designing. After that garry's link helped get me the rest of the way where I ended up using: System.Diagnostics.Process.Start(@"C:\Test\NewDocument.docx"); – wannabe GOAT Dec 16 '18 at 00:59

0 Answers0