Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Must have MS word on your computer?

Status
Not open for further replies.

lovevthokie

Programmer
Oct 16, 2001
19
US
I am adding a feature to a currently existing program that would generate a report in Microsoft Word from VB 6. I have added a reference in VB to MS word 10.0. When the user installs this program and attempts to run this function, will they have to have MS Word 10.0 on their machine? Do they have to have any version of MS Word on their machine?

Thanks in advance!
 
They will have to have the type library you reference. However, when they get the error 'Project or Library missing', then they can reference their own Word library by removing (unchecking) the offending reference and adding the one for their own system.

----------------------
scking@arinc.com
Life is filled with lessons.
We are responsible for the
results of the quizzes.
-----------------------
 
The user having a Type Library will not help if you are using VB6 i.e. you are not using VBA under Word but rather automatimg Word from VB6. The user MUST have a version of WORD installed. If you use "late-binding" and only use "back-level" features then any version that supports those features will work. Late-binding requires using "As Object" for word objects and using
Set objWrd = CreateObject("Word.Application")

When testing, use early-binding ("As Word.Application etc.) so that you get Intellisense and can use the constants and enumerations. Change to "late-binding" for final compile and release. Forms/Controls Resizing/Tabbing Control
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top