Questions tagged [wordml]

WordML is a common shortening of the proper term WordprocessingML.

Overview of WordprocessingML

87 questions
12
votes
4 answers

Python: Create a "Table Of Contents" with python-docx/lxml

I'm trying to automate the creation of .docx files (WordML) with the help of python-docx (https://github.com/mikemaccana/python-docx). My current script creates the ToC manually with following loop: for chapter in myChapters: …
Joseph jun. Melettukunnel
  • 6,267
  • 20
  • 69
  • 90
12
votes
2 answers

Is There An Open Source XSLT To Convert a WPF FlowDocument to WordML?

I want to use a WPF RichTextBox which allows users to edit and format text. This formatted text will eventually work its way into a Word document along with some of our other custom XML data. I've found several examples going from WordML to a…
bporter
  • 4,467
  • 2
  • 19
  • 29
11
votes
2 answers

Default WordML Unit Measurement ? pixel or point or inches

Please clarify the my doubt WordML/DOCX Default Unit Measurement is pixel or point or EMU or inches.. ?
it'sme
  • 531
  • 6
  • 23
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
6
votes
2 answers

css print mode: display header and footer only on first page of a generated word doc

I'm successfully generating word documents using html code with header and footer styled in css print mode, here is my code :
Vincent Teyssier
  • 2,146
  • 5
  • 25
  • 62
5
votes
1 answer

WordML templating with XML Schema and OpenXML SDK

I'm trying to use a docx read in via the OpenXML SDK as template in a .Net web app for form letters (essentially). I have a docx with the formatting I want, marked up with XML Schema tags defined from a xsd (whatever they're called, the help is…
Matt Sieker
  • 9,349
  • 2
  • 25
  • 43
5
votes
2 answers

Creating an ImagePart isn't saving the Relationship in OpenXML

--Updated to provide full working class example, with 2 sample documents-- www.sklinar.co.uk/wp-content/uploads/mydoc.docx - Original Document with a INCLUDETEXT instruction to merge in Footer.Docx www.sklinar.co.uk/wp-content/uploads/footer.docx I…
Stuart.Sklinar
  • 3,683
  • 4
  • 35
  • 89
4
votes
2 answers

Convert XHTML to Word ML

What is the best way to convert word HTML to word XML? I cannot buy a tool so need something preferably XSLT which is free and works suitably with basic formatting like paragraphs, lists, bold and italic.
Mary
4
votes
1 answer

Get Word ML from clipboard

I am intercepting the paste event for a richtextbox, in order to process the contents before pasting. If it contains tables or images etc. I need to do some custom stuff. If the copied selection is from Word 2010 and consists of mixed content (eg.…
3
votes
1 answer

Document.Body.Descendants() does not return all *sdt* elements

I'm trying to find all SdtElement in a Word document. I have used the below code: using (var wordDoc = WordprocessingDocument.Open(FilePath, true)) { var docSdts = wordDoc.MainDocumentPart.Document.Descendants(); //…
zak
  • 310
  • 3
  • 19
3
votes
1 answer

XSLT WordML table with dynamic columns based on number of nodes

I have a number of xml files from which I'm trying to create a WordML table. There are a number of nodes in each nodelist, and I need to create a column for each one, up to a maximum of 15 columns. However, if there are less than 15, the columns…
3
votes
1 answer

Essential parts of a Word 2007 xml doument

I have a xml file which I need to open with Microsoft Word 2007. I wrote it on my own. But when I try to open it tells "Some parts are missing or invalid". I think this happens my document does not have all the requied properties defined. So I need…
harsh
  • 2,399
  • 9
  • 29
  • 47
2
votes
5 answers

insert a word document into sql server database?

I feel quite overwhelmed with the variety on technologies I would need to use for the above task. I've searched the stack overflow stocks but couldn't pinpoint a solid check list of steps to do this. I would like to get an overview of the…
user560498
  • 537
  • 1
  • 16
  • 25
2
votes
1 answer

Custom placeholders/tags for dynamic content in a Word template

I have a web application (ASP.NET C#) where I would like the users to be able to upload word templates (essentially word document with predefined set of tags serving as placeholders). Part of the complication is I want to allow for using loops as…
Shahid
  • 995
  • 3
  • 11
  • 24
2
votes
2 answers

Formatting language with floating div like element

I have data stored in structured XML that I want to make it more readable using XSLT (or another alternative). The target document should have lots of instances of text aligned both to the left and to the right in the same line, and I need to have a…
Luiz Borges
  • 537
  • 1
  • 5
  • 19
1
2 3 4 5 6