Power Tool Merge of document fails

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

This topic contains 3 replies, has 2 voices, and was last updated by  somashekhar 8 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3802

    somashekhar
    Participant

    Hi ,
    When we merge 2 or more documents into the single document using power tool. Document fails to open in word. Post investigation we identified that this issue happens when the document contains table at the end of the page. If table is not the last element in the page the merge happens without any issues.

    Need quick help on this.

    We are calling the below API:
    DocumentBuilder.BuildDocument(List<OpenXmlPowerTool.Source>,string filename)
    Thanks

    #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 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.