I need to edit word templates inside my windows forms app, how can i do that? is ther开发者_开发百科e any control to do it?
Thanks for your help.
It is possible to host Word itself inside a WinForms application, but I doubt you want to do that.
Depending on your requirements you may want to use a third-party control for editing word files. There are many out there, so check with your favorite component provider.
Alternatively you could just launch Word outside your application and respond to when it's window is closed or when the template file is modified. This will probably be much easier and more stable than running hosting Word in winforms.
I think you can use the web browser control to host office documents. There was talk about a ActiveDocumentHost
control but it seems it got canned.
精彩评论