Click here to Skip to main content
14,838,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I used your wordfill_src project on a test web application.
It worked fine with me, but i don't know how to open the word file after saving it.

Can you provide me with a method of how to do that?

Thanks
Posted

Don't post this under Quick Answers - if you got the code from an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.
   
C#
Object oPath = "C:\\File_name.doc";//find the document
oDoc = oWord.Documents.Add(ref oPath, ref oMissing, ref oMissing, ref oMissing); //load File_name.doc into the document


Please be sure you have defined oDoc and oWord already:
C#
Word._Application oWord; //Define
Word._Document oDoc; //Define


--Vlad781
Please rate / accept as solution if this helps
   
v3

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