Results 1 to 2 of 2

Thread: MS Word file

  1. #1
    Join Date
    Feb 2006
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question MS Word file

    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? I would also like to insert images in file.

  2. #2
    Join Date
    Aug 2006
    Posts
    250
    Thanks
    19
    Thanked 49 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: MS Word file

    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.

  3. The following user says thank you to pherthyl for this useful post:

    Arpan (31st July 2008)

Similar Threads

  1. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  2. Replies: 2
    Last Post: 8th November 2007, 20:15
  3. file renaming on windows
    By jdd81 in forum Qt Programming
    Replies: 9
    Last Post: 2nd October 2007, 19:41
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  5. Sending Binary File with QFTP
    By nbkhwjm in forum Newbie
    Replies: 2
    Last Post: 7th March 2007, 18:10

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.