Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2006

Tip: Looking for answers? Try searching our database.

WinForm 2.0 hosting Word 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Niyazi - 28 Dec 2006 06:01 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.