Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

Problems with merging two documents and adding header/footer

$
0
0

Hi

I have a WebService application creating Office documents using Open XML SDK for another web based document managment system.

The task for the webservice is to create new documents based on a template and some custom properties supplied in the call.
Now we have found some errors in some of the documents. We get errors when opened in MS Office 2007 and in 2010.
The error is a repair message, but even if word can repare the document (as far as we can see) we need to get this fixed.

If we open the document with Open XML SDK Productivity Tool, and validate the document with Validation option Office 2010,
we get errors in HeaderReference, AttachedTemplate, and AlternateContentChoice for First and Primary footer.

If we validate the document with Validation option Office 2007, you get the above errors and a whole lot of TableLook errors.

I have provided a package with error document,  sample code and testfiles on SkyDrive for anyone whos willing to help.
Link to shared folder: Link to sample package

Thanks in advance


Best Regards Peter Karlström Midrange AB, Sweden



Viewing all articles
Browse latest Browse all 1288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>