I am getting error on this line "Word._Application wordApplication = new Word.Application();" Its saying path not found for the DOC which I am opening. But I am able to see the doc path in string variable which I am using.
I am using Windows 2008 Server, IIS 7.5.7600.16385, Microsoft Visual Studio 2010 and MS Office Profesional Plus 2010 14.0.5128.5000(64bit).
gsalunkhe
Member
42 Points
58 Posts
How to merge two word document into one document.
Dec 26, 2011 10:09 AM|LINK
Split off from http://forums.asp.net/t/1640045.aspx/1?How+to+merge+two+word+document+into+one+document+. Please don't necropost.
HI
I am getting error on this line "Word._Application wordApplication = new Word.Application();" Its saying path not found for the DOC which I am opening. But I am able to see the doc path in string variable which I am using.
I am using Windows 2008 Server, IIS 7.5.7600.16385, Microsoft Visual Studio 2010 and MS Office Profesional Plus 2010 14.0.5128.5000(64bit).
Regards
gsalunkhe
gsalunkhe
Member
42 Points
58 Posts
Re: How to merge two word document into one document.
Dec 26, 2011 11:06 AM|LINK
HI
I digged it further. I am getting error on
// Insert the files to our template selection.InsertFile(file , ref missing , ref missing , ref missing , ref missing);I am using Windows 2008 Server, IIS 7.5.7600.16385, Microsoft Visual Studio 2010 and MS Office Profesional Plus 2010 14.0.5128.5000(64bit).
Regards
gsalunkhe
hardikyano
Member
494 Points
112 Posts
Re: How to merge two word document into one document.
Dec 26, 2011 04:24 PM|LINK
Hi,
Please check this link
http://www.codeproject.com/KB/office/mswmergecs.aspx
http://devpinoy.org/blogs/keithrull/archive/2007/05/23/how-to-merge-multiple-microsoft-word-documents-in-c.aspx