Word 2010 for writing invoices, starting with XML
Posted
by TomTom
on Stack Overflow
See other posts from Stack Overflow
or by TomTom
Published on 2010-05-03T11:31:59Z
Indexed on
2010/05/03
11:38 UTC
Read the original article
Hit count: 267
Hello,
we are doing quite some invoice generation, and so far it is based on some pretty awful word automation that is now in for a review with Word 2010.
I would love to move to a XML based format for storing / presenting invoices, only going to a word document in the last stage. This means I can use easily othermeans to present an invoice internally from the XML.
We use Word as "last stage" because Word is a lot better than anything else ever discovered for formatting - our invoices have quite some text sometimes, in the invoice item table, and word is smartest with handling page breaks in the "correct" way.
Now, here my question: is there any proper way by now to do this with XML easily? I remember Word having (had) in 2007 some XML field mapping mechanism, but it did not handle tables in the XML. Was anything changed? What would be the proposed approach for generating an .docx document (starting with a .dotx templace) for an invoice, if the relevant data is available in XML form?
© Stack Overflow or respective owner