Windows Develop Bookmark and Share   
 index > Windows Forms General > opening Word document inside axwebbrowser
 

opening Word document inside axwebbrowser

I created an aplication that opens Word documents inside an axwebbrowser object in the windows form. Howeve, if i run 2 instances of the application and open 2 files - FileA.doc and FileB.doc, i lose control of the toolbar icons on FileA.doc as soon as i open FileB.doc in the second instance of the aplication....ie... i am no longer able to click on the toolbar buttons. The toolbar buttons are visible but do not function and cannot be clicked on. Please help.
krarun  Monday, July 21, 2008 10:25 AM
Doesn't sound too surprising. What happens when you switch focus back to FileA.doc first?
nobugz  Monday, July 21, 2008 11:54 PM
I dont quite get what you are asking me.... but let me try and explain.

1. Run 1st instance of the application and open FileA.doc - All toolbar icons of word for FileA.doc working
2. Open 2nd instance of application and open FileB.doc -All toobar icons working in FileB.doc
3. Coming back to FileA.doc(switching focus back to FileA) - Toolbar icons visible but not working.
4. note: no mater how many times i change focus between FileA and FileB it is only FileB word toolbar icons that is working now.

HOWEVER:...................


if i refresh or reopen FileA.doc in the First instance of the application, Control now shifts to FileA.doc and FileB loses functionality of the toolbar icons.
krarun  Tuesday, July 22, 2008 3:40 AM
Well, sounds like a Word issue. Certainly not of Windows Forms, the topic of this forum. You'll have to find an Office support newsgroup.
nobugz  Tuesday, July 22, 2008 9:37 AM
Thanks nobugz... Hoever whats funny is that i am playing ping pong between the MS Word programming and the window form forums. Both are redirecting me towards the other. Anyways. Will keep you posted if i find a solution.
krarun  Tuesday, July 22, 2008 10:30 AM

You can use google to search for other answers

Custom Search

More Threads

• How can I show an AVI video in a progress Windows Form?
• DB Connection
• Fast scroll of a bitmap?
• How to change System DPI programatically (C# Visual Studio 2005)
• softwere
• Mask IP Address
• Dispose() method going back to its form
• Multilingual Form C#
• Which event is supposed to be subsribed if I wanna change form WindowState from first showing up?
• C# Form BackgroundImage does not work