How can I write to/generate a *.doc file programmatically using c or c++? Is there a (open source/cross platform) library to do this? If this is not possible, can write an *.odt file and then convert it to *.doc? Thanks in advance!
EDIT: Anders Abel commented that *.rtf file type is an option, so any suggestions on this one are also accepted.