Word 2010 for writing invoices, starting with XML

爱⌒轻易说出口 提交于 2019-12-06 21:04:38

As far as I know there is some mechanism to automate building msword 2007 docs from xml. Main idea is to build xslt transformation on your xml. As you know word document is just an archive(just change extension to .zip and you will see) of different xml's. But problem that it is not always in one xml file(I worked with excel generation - there is a lot xml files there).

Also here is great example how to make exactly what you want - http://www.codeproject.com/KB/office/Generating_Word_Reports.aspx but I was not able to apply this to msexcel documents..

So I prefer to use DocumentFormat.OpenXml and DocumentFormat.OpenXml.Extensions to generate msword or msexcel documents.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!