PDA

View Full Version : MS Word file



Arpan
30th July 2008, 21:13
Is it possible to create/write a .doc file using Qt Programming?

For example, I read some text from an xml file then write it to a file and save it as a .doc file. will this work fine or not? :confused: I would also like to insert images in file.

pherthyl
30th July 2008, 21:26
I've been thinking about this problem as well, and I think the most straightforward approach is to use the RTF format and save as .doc (word will still open it and your users will be none the wiser). It is documented and easy to read and write with plain text. Maybe even do the transformation with xslt (not that I know anything about that).

Writing real doc files is stupidly hard and there aren't any good free libraries that will do it for you. Maybe you can buy a component for it though.