PDA

View Full Version : Create .doc file with Bold Font



phillip_Qt
13th August 2013, 14:40
Dear Experts,

I want to create a .doc file. File should contain a line "Subject" and this shall be underlined and in bold font.

Next line shall be "My Description" and this text should be in normal font. Please let me know how to do this. I'm able to do it in pdf format but i need in .doc format.

Thank you all in advance.

ChrisW67
14th August 2013, 01:32
I am assuming you mean a file in the Microsoft proprietary Word document format. Without Microsoft Word installed on the machine there's no way Qt can really help. If Word is installed then you can use ActiveQt to automate it to create your document.

For platforms other than Windows then you best ask Microsoft for the file format details, or inspect the source of OpenOffice, LibreOffice etc. to see how they do it.