Hi,
I used to have DSOFramer.ocx and I can very well host the Word 2003 when I
coded with VB.NET 2003. And the form had only 2 button other than hosting
Word.
First button for exit and second button was to save into SQL Server 2000.
Now I am mostly coding with VB.NET 2005 and I would like to learn if there
is a way to host Word 2003 in WindowsForm 2.0 (VB.NET 2005)?
Same ocx (DSOFramer.ocx ) will not work on VB.NET 2005. Does Microsoft have
any component for this problem?
Thank you for reading my post.
Rgds,
Niyazi
Michael M. - 29 Dec 2006 17:40 GMT
Niyazi,
If you start Word from yourApplication using the system.diagnostics.process
class
Then Set your application as Word.exe owner process
Use the API function Setparent
be sure to call API ShowWindow against Word.exe hwnd once it is in your form
so that it resizes, aligns and redraws.
You should now have the application sitting on your form like a control.
Now with it being a child window, I am not sure if you can access it's
WinProc or not but I am sure there is way overiding its close action.
> Hi,
>
[quoted text clipped - 14 lines]
> Rgds,
> Niyazi