Link to home
Start Free TrialLog in
Avatar of wselles
wselles

asked on

Problems embedding Word in VB.Net

Hi,

I'm developing a VB.Net application which outputs to Word. However it also needs editing in Word. To do this I want to embed Word in my application. I tried this using the webbrowser control (MS KB  Q304643). The problem is that when I open a document, I get the question whether I want to open or save the document, just like in a normal webbrowser. The other problem is that I can't override the Short-keys like Ctrl-N, which opens a new Word window. Does any one have experience with this? And found a solution to it? It would be very helpful.


Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Avatar of wselles
wselles

ASKER

Thanks. Works fine with notepad, but doesn't work for Word. It just opens a new Word window.... It works with Excel but Excel then shows separately in the task bar.
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wselles

ASKER

mpemberton5, a while ago I found an article about it in c# ( http://www.codetools.com/cs/miscctrl/winwordcontrol.asp ). Although it had very limited functionality (which I can't adjust because I don't know C#), it did work. I was hoping there was a similar VB.NET method.

Currently, I'm working on an alternative structure: creating a dll for Word, making Word the main window, which is not a very nice resolution, but it beats working with two different windows.

Cheers,
ws