Results 1 to 4 of 4

Thread: read and write data in excel files

  1. #1
    Join Date
    May 2011
    Posts
    39
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default read and write data in excel files

    Please anyone sugggest me how to read and write data in microsoft excel files...
    every help shall be appreciated

  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: read and write data in excel files

    You can use ActiveX (QAxObject and friends) to control an Excel object. If you just want to read or write an XLS file as if it were a table then you can actually do that through an Excel ODBC driver and hence the QODBC database driver (adapt the DSN from http://www.codeproject.com/KB/databa...dbc_write.aspx)

  3. #3
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: read and write data in excel files

    QAxContainer is not under LGPL but only under commercial license. Besides you will have to use interface of excel which I think is messy. I used a C++ commercial library called libxl. It is good. If commercial is not an option u can try VOLE too. And if you are successful with it, please write a blog about how you managed with VOLE

  4. #4
    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: read and write data in excel files

    You are bit out of date there. QAxContainer and QAxServer are released under a BSD licence (since 4.5 IIRC). From the 4.7 docs:
    The QAxContainer module is not covered by the GNU General Public License (GPL), the GNU Lesser General Public License (LGPL), or the Qt Commercial License. Instead, it is distributed under the following license.
    Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    All rights reserved.
    Contact: Nokia Corporation (qt-info@nokia.com)
    You may use this file under the terms of the BSD license as follows:
    ...

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

    pkj (6th June 2011)

Similar Threads

  1. How can I Read Write Excel File
    By xingshaoyong in forum Qt Programming
    Replies: 6
    Last Post: 13th July 2011, 20:16
  2. how to use api to read excel files(.xl,xls)
    By xiongxiongchuan in forum Qt Programming
    Replies: 9
    Last Post: 15th June 2010, 00:38
  3. Using QT to read and write files over bluetooth FTP
    By deano in forum Qt Programming
    Replies: 0
    Last Post: 14th December 2009, 23:22
  4. Replies: 1
    Last Post: 27th August 2009, 05:41
  5. Read \Write Excel File using Qt
    By xingshaoyong in forum Qt Programming
    Replies: 4
    Last Post: 27th July 2007, 22:07

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.