|
-
Feb 15th, 2000, 08:54 PM
#1
Thread Starter
New Member
I'm writting an VB6 application which needs to open a Word Document from a Template. This I've managed with Word2000 installed using the following code...
Dim WdApp As Word.Application
Set WdApp = New Word.Application
WdApp.Application.Visible = True
WdApp.Documents.Add
Template:=g_WordOrderFile$,
NewTemplate:=False
... but it fails on the 'Set' line when using Word97 (Run Time Error 458 : Variable uses an Automation type not supportd in VB) or Word95 (Run Time Error 429 : Actice X component cant't be created)
Can any one help me? ...... MTIA
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
|