Merge Word Documents (Office Interop & .NET), Keeping Formatting

↘锁芯ラ 提交于 2019-12-01 20:45:32
Sarathy

While adding the documents you are skipping the Template name, that why ut's missing the format.

It should look like

string defaultTemplate="your template name with full path"; 

OR

Default template name

string defaultTemplate="Normal.dot";

wordApplication.Documents.Add(ref defaultTemplate,............

Use this link as Ref: http://devpinoy.org/blogs/keithrull/archive/2007/05/23/how-to-merge-multiple-microsoft-word-documents-in-c.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!