G
GerryM
I'm trying to automate a Wordprogram. The asp part starts with
Dim oApp
Dim oDoc
Dim oMergedDoc
Set oApp = CreateObject("Word.Application")
Set oDoc = oApp.Documents.Add
The "CreateObject" statement seems to be very touchy. If another instance
of WINWORD is left in the Processes, it causes Error 429: ActiveX component
can't create object. Also, I found that the files Asyncfilt.dll,
Oleaut32.dll, OlePro32.dll, and StdOle2.tlb should have the same build
number; they did not and also caused Error 429. I found new versions of the
first three files to download but not forStdOle2.tlb. CreateObject now works.
Alas, the oApp.Documents.Add statement now gives error 6002, Word could not
fire the event.
So far the Knowledge Base has been no help. Does anyone have any
suggestions?
I'm running Windows XP Prof.(SP2), Office 2003 (SP1), FrontPage 2003(SP1),
VB6.0 (SP6), Works Suite 2003, and have WindowsScript 5.6 installed. I have
checked the Word.Application key in the registry and the Normal.dot template.
Dim oApp
Dim oDoc
Dim oMergedDoc
Set oApp = CreateObject("Word.Application")
Set oDoc = oApp.Documents.Add
The "CreateObject" statement seems to be very touchy. If another instance
of WINWORD is left in the Processes, it causes Error 429: ActiveX component
can't create object. Also, I found that the files Asyncfilt.dll,
Oleaut32.dll, OlePro32.dll, and StdOle2.tlb should have the same build
number; they did not and also caused Error 429. I found new versions of the
first three files to download but not forStdOle2.tlb. CreateObject now works.
Alas, the oApp.Documents.Add statement now gives error 6002, Word could not
fire the event.
So far the Knowledge Base has been no help. Does anyone have any
suggestions?
I'm running Windows XP Prof.(SP2), Office 2003 (SP1), FrontPage 2003(SP1),
VB6.0 (SP6), Works Suite 2003, and have WindowsScript 5.6 installed. I have
checked the Word.Application key in the registry and the Normal.dot template.