Word Documents and the WebBrowser Control
I am loading a word document into the web browser control using code like this:
Code:
WebBrowser1.Navigate("C:\Docs\Test Documents\Test.doc")
When I do this, everything works fine and the user can use all of the toolbars.
However, if after I do that, I then open word outside of my app, all of the toolbars in the word document in my app become disabled.
I have done some searching and found other people have had this issue and this MS article mentions similar symptoms, but offers no solution.
http://support.microsoft.com/kb/243058/
Has anyone seen this before or found any way around it?
Re: Word Documents and the WebBrowser Control
Out of curiosity, when you close Word that you opened outside of your app, does it re-enable the toolbars?
Re: Word Documents and the WebBrowser Control
Quote:
Originally Posted by
ForumAccount
Out of curiosity, when you close Word that you opened outside of your app, does it re-enable the toolbars?
Good question. No it does not.
Re: Word Documents and the WebBrowser Control
I found this, I'm not sure whether if it will work for you:
Quote:
Originally Posted by http://www.codeproject.com/KB/office/WordInDotnet.aspx?fid=220608&fr=26#xx0xx
I have got an easier option:
Problem 1: toolbar buttons disabled when user loads word outside your application
Cause : this is due to the fact that the application is changing normal.dot
solution: bind the application to a different normal.dot
Re: Word Documents and the WebBrowser Control
Hmmm... How can I do that loading it in a webbrowser though? I have no control over which normal.dot the document is going to load.