|
-
Nov 27th, 2001, 10:25 AM
#1
Thread Starter
New Member
Creating object for MS Word 97
I am in need of some help. I have created an Active X object to create a report in MS Word. I think that I am having problems with three specific calls in the Active X object.
1: Set objWord = New Word.Application
2: objWord.Documents.Open ' here I have the path to the file'
3: With objWord
'Insert the Course Number to the template
.ActiveDocument.Bookmarks("Course_Number").Select
.Selection.TypeText ("Course_Number")
End With
I compile this Active X object into a DLL and then create my executable from my main form with a reference to this DLL. When I run my program and navigate to the form that uses these function calls. I receive an error if the client machine has Word 97 installed. If the client machine has Word 2000 everything works like it should.
My questions are, is one of these function calls not supported by Word 97? Or is my problem that the template document was created in Word 2000?
Any help that anyone can provide will be highly appreciated.
-
Nov 27th, 2001, 11:58 AM
#2
It could be either one. Word 2000 uses completely different run-times from Word97. Word is definitely not backward compatible.
If you compiled on a 2000 machine, it won't work on a 97 machine. You will have to have VB put up on a Word 97 box, compile it there.
Word97 will open Word 2000 documents that were saved in older word formats. If people are opening Word documents on a network share, you really should have EVERYBODY at the same level of Word, same SR as well. We had 300 PC's - we took a lot of pains to keep them all the same: same OS, same IE, same Office.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|