Documents.Add fails
I have a C# application that creates an instance of Word 2003 and executes a
macro. The macro tries to create a new document using the code below:
Application.Documents.add(Template:=strAppPath & "\" &
"ErrMsgUserguide.dot", NewTemplate:=False, DocumentType:=0)
Every time this line fails. What could be causing this error?
If I run the macro from the MS Visual Basic IDE in Word it works fine.
Obviously calling the same macro from the C# application has something to do
with the problem. Any ideas?
|