Power Tool Merge of document fails

Home Forums Open-Xml-PowerTools Power Tool Merge of document fails

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3803
    Eric White
    Keymaster

    Hi,

    Can you please post online (dropbox…) the two source documents, and a small C# sample that does the merge? I am very curious as to why this is happening, and want to fix it asap.

    Thanks, Eric

    #3806
    somashekhar
    Participant

    Hi Eric ,

    Thanks for you quick response

    I have added the 2 documents into the dropbox you can access those 2 Docs using the below links

    https://www.dropbox.com/s/ypibbh19h067kx3/Current1.docx?dl=0
    https://www.dropbox.com/s/ob8faejktrxfctq/Current.docx?dl=0

    below sample code (C#) is used to merge the documents:

    string sources2 = “C:\\Current1.docx”;
    string sources1 = “C:\\Current.docx”;
    string finaldoc = “C:\\final.docx”;
    List<Source> sources = null;

    sources = new List<Source>()
    {
    new Source(new WmlDocument(sources2),true),
    new Source(new WmlDocument(sources1),true)

    };
    DocumentBuilder.BuildDocument(sources, finaldoc);

    Please let me know if need any information

    Thanks
    Somashekhar

    #3811
    somashekhar
    Participant

    Hi Eric,

    Do we have any update on this.

    Thanks
    Somashekhar

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.