Results 1 to 8 of 8

Thread: ActiveQt + Excel

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: ActiveQt + Excel

    Your questions are a bit out of scope of this forum. You're asking for information about Excel API, which has nothing to do with Qt and I'm afraid we're simply not qualified to answer them.


    BTW. Shouldn't you iterate starting from 0 instead of 1?

  2. #2
    Join Date
    Sep 2007
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2
    Thanked 3 Times in 3 Posts

    Default Re: ActiveQt + Excel

    ok, sorry for offtopic

    BTW. Shouldn't you iterate starting from 0 instead of 1?
    No, Micro$oft starts counting from 1

  3. #3
    Join Date
    Apr 2007
    Location
    Ilsfeld, Germany
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 1 Time in 1 Post

    Default OT: ActiveQt + Excel

    Hi,

    you can only fill a horizontal range with an 1-dim Array, for a vertical range you need a 2-dim array.

    And, also M$ often counts beginning with 1, here that shouldn't matter.

    In VBA you could code it like this.

    HTH, Bernd
    --
    Qt Code:
    1. Option Explicit
    2.  
    3. Sub x()
    4. Dim i%, arHor(22 To 25), arVer(10 To 12, 99 To 99)
    5.  
    6. For i = 22 To 25
    7. arHor(i) = i
    8. Next
    9. Range("A1:D1") = arHor
    10.  
    11. For i = 10 To 12
    12. arVer(i, 99) = i
    13. Next
    14. Range("A2:A4") = arVer
    15. End Sub
    To copy to clipboard, switch view to plain text mode 

  4. #4
    Join Date
    Sep 2007
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2
    Thanked 3 Times in 3 Posts

    Default Re: ActiveQt + Excel

    Thanks, but unfortunately QAxObject doesn't support 2-dimensional arrays (i.e. QVariant doesn't support)

  5. #5
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: ActiveQt + Excel

    Actually you can make QVariant support basically anything.. See Q_DECLARE_METATYPE for more details.
    J-P Nurmi

Similar Threads

  1. Replies: 3
    Last Post: 7th October 2015, 19:43
  2. How can I Read Write Excel File
    By xingshaoyong in forum Qt Programming
    Replies: 6
    Last Post: 13th July 2011, 20:16
  3. Read excel
    By psipsi in forum Qt Programming
    Replies: 2
    Last Post: 23rd December 2008, 17:07
  4. Excel XML Creation with Qt's Dom classes
    By jpujolf in forum Qt Programming
    Replies: 4
    Last Post: 21st May 2007, 12:23
  5. Filtering as Excel in Table
    By ankurjain in forum Qt Programming
    Replies: 1
    Last Post: 13th May 2006, 09:05

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.