does anybody know how to use frames in wordprocessingdocument using the openxml sdk v 2.5 ? I'm using the openxml sdk v 2.5 to edit docx files in a WPF application. I have several Objects like Tables Text and Images and i want a frame around them, so they won't split at the end of a page.
tried this:
Frame frame = new Frame(xmlElementList);
document.MainDocumentPart.Document.AppendChild(frame);
but after adding the frame to the document the docx file is not valid and cannot be open in word