msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Word as an MDI child

 
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE
Author Message
peshekeedweller



Joined: 04 Oct 2007
Posts: 2

PostPosted: Sat Feb 05, 2005 3:10 am    Post subject: Word as an MDI child Reply with quote

How can I use automation to open a word document in a word window as a child
window of an MDI form? Thanks in advance.

Archived from group: microsoft>public>vb>ole
Back to top
View user's profile Send private message
Santhana Gopalan



Joined: 04 Oct 2007
Posts: 3

PostPosted: Thu Apr 21, 2005 11:42 am    Post subject: RE: Word as an MDI child Reply with quote

Open the word document programatically.

Use FindWindow API to get the Handle of the word document.

Use SetWindowParent API and pass the Handle of the word document and Handle
of the form or even a control which should act as the container of the word
document.

"peshekeedweller" wrote:

> How can I use automation to open a word document in a word window as a child
> window of an MDI form? Thanks in advance.
>
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group