Results 1 to 4 of 4

Thread: Can Qt deal with Excel?

  1. #1
    Join Date
    Aug 2010
    Posts
    20
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Can Qt deal with Excel?

    I mean... for example, write something to some locations of the MS Excel worksheet file.

    Are there some ways to do this?

  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: Can Qt deal with Excel?

    Yes. ActiveQt or the Excel ODBC driver through QtSql

  3. #3
    Join Date
    Aug 2010
    Posts
    20
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can Qt deal with Excel?

    Quote Originally Posted by ChrisW67 View Post
    Yes. ActiveQt or the Excel ODBC driver through QtSql
    ActiveQt seems not free... & are there some simple examples of Excel ODBC? Thanks!

  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: Can Qt deal with Excel?

    ActiveQt is a standard part of the Qt libraries and has been on an open license for at least a couple of years. All the ActiveQt source code I can see has a BSD header.

    To use the ODBC interface you treat an Execl spreadsheet as if it were a table through Qt SQL with the ODBC plugin. You need to provide an Excel ODBC connection string or suitable DSN to QSqlDatabase::setDatabaseName(). I've never done it in anger so I don't have a canned example.

Similar Threads

  1. How to deal with foreign key in Qt
    By sjyzhxw in forum Qt Programming
    Replies: 3
    Last Post: 25th May 2012, 09:31
  2. Replies: 1
    Last Post: 8th August 2011, 14:46
  3. Replies: 5
    Last Post: 31st December 2010, 11:49
  4. How to deal with shorcouts in many widgets
    By kazibi in forum Qt Programming
    Replies: 1
    Last Post: 29th January 2010, 09:58
  5. Replies: 12
    Last Post: 23rd March 2007, 09:23

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.