Results 1 to 4 of 4

Thread: Class to read from .ods OpenOffice Calc spreadsheet format ? Does it exist?

  1. #1
    Join Date
    Feb 2010
    Posts
    24
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question Class to read from .ods OpenOffice Calc spreadsheet format ? Does it exist?

    Hi !

    Is there an example somewhere as how to read from Open Office Calc .ods format ? Basically it is an zipped xml.
    It would be nice if anyone has already implemented this using Qt. This seems too useful for it to not have been already done by someone skilled.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Class to read from .ods OpenOffice Calc spreadsheet format ? Does it exist?

    Besides the current xml classes in Qt, what do you expect from an odf reader?

  3. #3
    Join Date
    Jul 2007
    Location
    Jundiai/SP, Brazil
    Posts
    114
    Thanks
    5
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Class to read from .ods OpenOffice Calc spreadsheet format ? Does it exist?

    Hi,

    No, no exists in Qt. You will have to create your own class to do this.
    The basic (very basic) steps to do this can be:

    1) unzip the files. Ods. Use unzip or Quazip for example our create you own unzip classe.
    2) Using the Class QXml (...) you should read and interpret the correct files. It then use the data in your program.

    If you do not know what it meant the tags inside the xml files that are encapsulated in the file ods. You can download this file to look at ODF - OpenDocument-v1.0-os.pdf
    from ww.osasis-open.org

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Class to read from .ods OpenOffice Calc spreadsheet format ? Does it exist?

    Since Open Office is Open source, you may find that there is a class already written for you. It may not be Qt based (never looked at it), but it could still be very useful.

    Unless of course your license would conflict with the one from Open office, in which case you could only use it as a reference.

  5. The following user says thank you to squidge for this useful post:

    Zlatomir (12th May 2010)

Similar Threads

  1. Replies: 6
    Last Post: 7th December 2010, 12:32
  2. Read File -> Use class
    By T0bi4s in forum Qt Programming
    Replies: 3
    Last Post: 7th February 2010, 13:40
  3. read the file which has the format of odp!
    By sunnysun520 in forum Qt Programming
    Replies: 11
    Last Post: 14th May 2009, 15:14
  4. Opendocument format read/write *.odt
    By patrik08 in forum Qt Programming
    Replies: 7
    Last Post: 17th September 2008, 00:48
  5. Replies: 13
    Last Post: 1st June 2006, 14:01

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
  •  
Qt is a trademark of The Qt Company.