There's the theory and then there's the practice. In theory, the format is open and documented. It's a simple zip file with some XML inside. In practice, Word has to deal with decades of legacy expectations that are baked into the software that typically generates them.
Libraries exist to generate Word files in JavaScript, though I can't vouch for any. Whether or not the output works consistently in all software that reads them is another matter.
Great point. This has been my experience as well. We once generated a file that could be read by Numbers.app and Excel; however, couldn't be read by a piece of third party software.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
There's the theory and then there's the practice. In theory, the format is open and documented. It's a simple zip file with some XML inside. In practice, Word has to deal with decades of legacy expectations that are baked into the software that typically generates them.
Libraries exist to generate Word files in JavaScript, though I can't vouch for any. Whether or not the output works consistently in all software that reads them is another matter.
Great point. This has been my experience as well. We once generated a file that could be read by Numbers.app and Excel; however, couldn't be read by a piece of third party software.