locked
How to merge two word document into one document. RRS feed

  • Question

  • User-115046742 posted

    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

    Monday, December 26, 2011 7:06 AM

Answers

  • User-380515194 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, December 26, 2011 12:24 PM

All replies

  • User-115046742 posted

    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

    Monday, December 26, 2011 7:06 AM
  • User-380515194 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, December 26, 2011 12:24 PM