Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.vba,microsoft.public.word.docmanagement
techie
 
Posts: n/a
Default 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?


 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2003 mailmerge to HTML mail fails Testingcase Mailmerge 6 July 9th 06 03:47 PM
OpenDataSource fails Laurel Mailmerge 3 January 26th 06 09:43 PM
Normal.dot fails to save anything swanskerry Microsoft Word Help 3 December 8th 05 06:52 PM
Word 2003 fails to set up Avery labels accurately, why??? TerenceR Microsoft Word Help 1 May 25th 05 09:50 PM
Mouse wheel fails to scroll help frame in Word 2003. jthomas Microsoft Word Help 0 December 22nd 04 09:29 PM


All times are GMT +1. The time now is 07:00 AM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"