Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / November 2005



Tip: Looking for answers? Try searching our database.

How to manipulate a Word 2000 document control in a  Visual Basic 6.0 form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rene Langevin - 16 Nov 2005 15:44 GMT
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.
 
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



©2009 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.