I want to open a MS Word Document in client side by clicking on a link in my asp.net page, then fill the document with some text from textboxes inside page, and after user has saved the document, I can get a response back to do my stuff with it.
what is your best solution to get it done?
As far as I researched, OpenXML
is for manipulating a document on server, which doesn't suits my problem, I've got the same problem with Microsoft.Office.Interop.Word
which can create a word document but it is server side too and won't help.
I can create some xml template and use textboxes values to feed the xml with desired data using java script but the problem is, by using this approach the file just gets downloaded in client side and I have no idea whats going on then.
I need ms word to be open gets some data then close and inform me. Is this even possible?
I end up with using DocX. After user provided some data inside page and submitting them, I create a document on server using this technology.
And the best way to update the document on server is using WebDAV features, it adds the exact functionality I need to my app. MS Office has built-in support for WebDAV and it can be easily configured inside IIS 7.5. So user can open/edit/save the document on server by using his/her own client MS Word and after saving, document on server gets updated.