word Application.AddIns.Add throws 'Word cannot open this document template'

Posted by Vinay B R on Stack Overflow See other posts from Stack Overflow or by Vinay B R
Published on 2010-06-08T16:49:52Z Indexed on 2010/06/08 16:52 UTC
Read the original article Hit count: 205

Filed under:
|
|

Hi,

I have a template document with a simple macro to insert a file into a document. When i try to load this template file using Application.Addins.Add i am getting an error saying 'Word cannot open this document template'.

wordApplication.AddIns.Add( %template file path%, ref trueObj );

This works fine on some machines.

Also is there any way to make sure that we load the template file as a global Template always.

© Stack Overflow or respective owner

Related posts about templates

Related posts about msword