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.