ASP.NET Samples
    .NET Application Samples
    Reporting Services Samples

    View The Latest
OfficeWriter Docs

    OfficeWriter Home
    OfficeWriter Resources
    OfficeWriter Demos
WordApplication Merge Documents Demo (VB.NET)

New in WordWriter v3.5, you can now insert elements from separate documents. You can use this functionality to copy/paste document elements into different files, or to easily merge Word documents. This sample demonstrates how to merge three different Word documents into one unified document.

Technical Overview

This sample uses the WordApplication class to open three existing documents and insert them into a new blank document. The insertBefore() and insertAfter() methods are used, which accept an element from the current document or any other document, inserting it into the current document.

View source View 1st document View 2nd document View 3rd document

Click to run demo






Copyright 2005 © SoftArtisans, Inc. All Rights Reserved.