vb.net - Applying a .docm template to existing .doc/.docx files in MS Word, is it possible? -


i have vb.net program opens word documents, performs mail merge , saves them different location. attempting allow user decide when want save document via adding button ribbon in word calls macro this.

i've created docm template adds button ribbon in word 2007/2010/2013. on attempting open doc/docx file word open in new window lacks ribbon modification imposed template.

i wondering if knew of way programmatically apply template existing document short of opening docm file , pasting in text doc/docx file?

if understand correctly, macro (button) part of template , visible far open document using/based on template. so, opening existing document based on template (that doesn't define macro) not show macro button. "applying new template existing documents" doesn't makes sense because templates have role when new document born. @ moment styles, content gets copied template new document , after connection template lost.

i not see other solution other creating application level add-in ms word. clients have install add-in after required functionality accessible ribbon. of course solution more expensive 1 compared current 1 because have create add-in application (not difficult) installer (msi setup) add-in (can difficult without previous exepriences).


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -