Results 1 to 2 of 2

Thread: Create .doc file with Bold Font

  1. #1
    Join Date
    Oct 2007
    Posts
    201
    Thanks
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Create .doc file with Bold Font

    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.
    Cheers,
    Phillip



    --- Please post the solution you got to solve your problem. It may help others.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Create .doc file with Bold Font

    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.

Similar Threads

  1. Replies: 1
    Last Post: 14th October 2013, 07:07
  2. QMdiSubWindow with ugly bold font
    By RThaden in forum Qt Programming
    Replies: 0
    Last Post: 28th February 2013, 14:21
  3. Need help to create EPS files with font Times New Roman
    By truong.ng in forum Qt Programming
    Replies: 0
    Last Post: 20th August 2012, 09:14
  4. Change font in a text file
    By viciv919 in forum Newbie
    Replies: 1
    Last Post: 16th March 2010, 11:53
  5. QPushButton's font is auto bold in WinCE
    By lovelypp in forum Qt Programming
    Replies: 0
    Last Post: 10th July 2008, 13:47

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.