WordProcessingML is the XML format introduced with Microsoft Office Word 2003. There it is used for a single file "flat" XML export. In Microsoft Office 2007 format (a DOCX file is a zip file) it is used to describe the file called ``document.xml`` file. This file contains the content of the DOCX file.
Questions tagged [wordprocessingml]
120 questions
24
votes
2 answers
cannot preserve space between runs
i want to generate a word document
as an input i have this string "open packaging conventions" and each word will have a different style
the result should be open packaging conventions
WordprocessingDocument document =…

Cerise Frutta
- 241
- 1
- 2
- 4
9
votes
1 answer
Get a CheckBox in Word using OpenXML
How does one get a handle to a CheckBox control that's embedded in a Word document using OpenXML?
You would think that either Paragraph.ControlPropertiesPart or Paragraph.Descendents() would achieve something but in every single case I get a null…

Phil.Wheeler
- 16,748
- 10
- 99
- 155
9
votes
2 answers
Creating a Word document in Coldfusion - how to have pagenumbering?
I am creating a Word format .doc using the following code, then cfheader and cfcontent to serve. All is good but I need to be able to place dynamic information in the header (or footer), or automatic pagenumbering would be a second best option.
How…

Saul
- 1,387
- 5
- 23
- 45
8
votes
2 answers
Comparing Docx files using OOXML
How can I read word-by-word (with styles) from a docx file. I want to compare two docx files word-by-word and based on the differences I have to write into another docx file (using c# and OOXML).
I have tried achieving this by using…

user274223
- 81
- 1
- 3
6
votes
1 answer
Word 2007, Open XML - embedding an image
Do you know what basic information MUST include a paragraph ( ) in document.xml inside a *.docx document, that specifies an image? I do know there must be:
specifing the relationship id, but what else?
It's very…

agnieszka
- 14,897
- 30
- 95
- 113
5
votes
1 answer
Insert image from byte array into OpenXML CustomXmlBlock
I'm working with a template document that uses CustomXmlBlocks as placeholders to place tables and other information. I need to be able to place an image into one of these blocks somehow... even if it is placed into a run first.
The images come back…

Sunspot
- 53
- 3
5
votes
1 answer
Show Reviewing Pane in Word Client by default
What I want:
I'm editing a WordprocessingDocument, and adding some tracked changes in it. This part is done. Now, I want MS word to show all revisions by default, i.e., it shouldn't require user to click on the red side bar to open the tracked…

Ahmad Khan
- 2,655
- 19
- 25
5
votes
3 answers
How can I query a Word docx in an ASP.NET app?
I would like to upload a Word 2007 or greater docx file to my web server and convert the table of contents to a simple xml structure. Doing this on the desktop with traditional VBA seems like it would have been easy. Looking at the…

gidmanma
- 1,464
- 1
- 16
- 27
4
votes
1 answer
OpenXML: Anyway to see if a Word Document fits one page
While I doubt it, if I open up a word document using OpenXML sdk in C# and add some info, is there any way for me to see if it still fits one page?
If it doesn't I wan't to reduce font size on specific items I added until it fits.
I could write this…

Ingó Vals
- 4,788
- 14
- 65
- 113
4
votes
1 answer
Remove cell borders in table in Word document (OpenXml.Wordprocessing)
I'm using DocumentFormat.OpenXml.Wordprocessing to add a table in a Word document. What I need is to remove the border of the first 4(/6) cells in the last 3(/N) rows of the table. These rows are added like:
t.Append(new TableRow(
new…

I.Manev
- 709
- 7
- 23
4
votes
3 answers
c# OpenXML search and replace text not saving
I'm trying to do a basic search and replace of text on a .docx word document using OpenXML and Eric White's OpenXmlPowerTools (installed from NuGet). I've followed examples on this site and his blog, but for some reason I never see the changes…

Bret Lien
- 153
- 2
- 8
4
votes
1 answer
How to edit bookmarks in a Word template using DocumentFormat.OpenXml and save it as a new PDF file?
I'm really having trouble in editing bookmarks in a Word template using Document.Format.OpenXML and then saving it to a new PDF file.
I cannot use Microsoft.Word.Interop as it gives a COM error on the server.
My code is this:
public static void…

user2801308
- 41
- 6
4
votes
1 answer
Docx: can't seem to get a bulleted list to render
I'm building a DocX document essentially from scratch with XML. I have a very simple goal: create a bullet-point list, like a ul in HTML. Reading the WordProcessingML specification for numbered lists (section 2.9), I created what I thought would…

limp_chimp
- 13,475
- 17
- 66
- 105
4
votes
1 answer
How to apply a character style to a run in a wordprocessing document?
When I create a paragraph style with openxml sdk 2 in c# and apply it to a paragraph every thing will be correct and it will run without any problem.
But with the codes below, when I create a character style and apply it to a run it make no change…

Reza M.A
- 1,197
- 1
- 16
- 33
3
votes
2 answers