Hi,
In a Visual Basic 6.0 form, I want to put a Word control in which I will
create a new document from data store in a database.
So, in my VB projet component, I insert the "Microsoft Word document"
insertable objet (after that the reference "WordCtl Type Library" is
automatically added)
On the VB form, I insert the new "Document" control from the toolbox so I
have the "Document1" document objet in my project.
After that, how I proceed to put text in the Word document ?
Thanks
Rene Langevin
"Peter Huang" [MSFT] - 17 Nov 2005 06:18 GMT
Hi
Do you mean OLE control? If no, I think that should have a similar
property/interface to get the Document interface.
In ole control held a word document, we can get the document interface and
then use Word's Object Modal to do text insert.
Private Sub Command1_Click()
Me.OLE1.DoVerb vbOLEInPlaceActivate
Dim wdDoc As Word.Document
Set wdDoc = Me.OLE1.object
wdDoc.Content = "fdsfads"
End Sub
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Rene Langevin - 17 Nov 2005 18:41 GMT
Hi,
I don't think to use OLE. I want to use the "WordCtl Type Library" control
with the property/interface of the Document interface.
I don't know how to link (bind) the WordCtl.Document object on my form with
the Word 2000 Document interface.
Thanks,
Rene Langevin
"Peter Huang" [MSFT] - 18 Nov 2005 07:13 GMT
Hi
I am sorry for that. It seems that the Word 2000 Document control is an old
one.
And Office 2000 have retired from its mainstream support lifetime.
http://support.microsoft.com/lifecycle/?p1=2484
So far I can not find the control, so can you send me the control's ocx
file together with its denpend files if necessary.
You may reach me via removing "online" from my email address.
Thanks for your efforts!
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.