Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 14th, 2004, 12:11 PM
Authorized User
 
Join Date: Nov 2003
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default reference VB6 Microsoft word document

Hi,

   I have a problem with refrence on Microsoft Word Object Library 8.0, after i upgrade my office and when i open my vb6 projet, the compilator doesn't find the reference anymore.

     If anyone can tell my how use the objet when i upgrade my office or any other solution to my problem i will be very recognizing.

Sorry if my english is bad.



 
Old January 14th, 2004, 01:20 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you upgrade office the word library will upgrade too. The Word Object is dependant on what version of office you have. XP for instance is version 10.

Yehuda
 
Old January 23rd, 2004, 08:07 AM
Authorized User
 
Join Date: Jul 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alex_read
Default

Word 8.0 (I think) is the reference for word 97. If you upgraded to word 2000, the reference should appear under "Microsoft Word Object Library 9.0", or for word XP, "Microsoft Word Object Library 10.0".

The alternative which you could use to make your code run with any version of word would be to use the following (there is a performance decrease in using this though):

Dim objWrd as object
set objWrd = CreateObject("Word.Application")






Similar Threads
Thread Thread Starter Forum Replies Last Post
IE open document reference bobbyastrain Pro VB 6 1 December 30th, 2007 08:47 AM
Dynamic Reference to VB6 DLL webnet .NET Framework 2.0 3 October 4th, 2007 11:41 AM
to generate a Microsoft Word Document using JSP harikrishnan_j2003 JSP Basics 0 May 18th, 2006 01:07 PM
Word Reference (COM) bmains Visual Basic 2005 Basics 2 April 25th, 2005 10:40 AM
Can a VB6 ActiveX DLL reference a spreadsheet? james gold Pro VB 6 0 October 2nd, 2003 10:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.