I have some XML and I need to convert them to a Microsoft Office Document(2007). What’s the best and fastest way to do it? I can do it using C# or Java. I’ve seen that spire. I can do it but it’s quite expensive, is there an alternative? Does Microsoft offer something?
Share
You could use XSLT – And there’s a nice sample here on Christian Nagel’s OneNotes.
Taking this XML
And using this XML Style sheet:
Can generate this MS Word Doc for 2003.
To do this in code see this answer: https://stackoverflow.com/a/34095/30225
What you need to do either use an equivalent for Office 2007 docx or just generate the 2003 doc and let people open it in 2007.