Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Excel API for C/C++
QtWS25 Last Chance

Excel API for C/C++

Scheduled Pinned Locked Moved Brainstorm
43 Posts 16 Posters 80.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fcrochik
    wrote on last edited by
    #19

    [quote author="Yash" date="1293597766"]Libxls
    [EDIT: clickable link, Volker][/quote]
    Not yet....

    "libxls.sourceforge.net":http://libxls.sourceforge.net

    Certified Specialist & Qt Ambassador <a href="http://www.crochik.com">Maemo, Meego, Symbian, Playbook, RaspberryPi, Desktop... Qt everywhere!</a>

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #20

      Thanks - corrected * 2 :-)

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fcrochik
        wrote on last edited by
        #21

        Has anybody figured out what kind of license is? GPL, LGPL, ... ?

        I would like to include all the "open source" tools/libraries we talk about into wikis so when needed one can find them in one place.

        EDIT: What are the KOffice license issues?

        Certified Specialist & Qt Ambassador <a href="http://www.crochik.com">Maemo, Meego, Symbian, Playbook, RaspberryPi, Desktop... Qt everywhere!</a>

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #22

          From http://www.koffice.org/contribute/:

          bq. KOffice is released under the LGPL v2+ (and GPL v2+ for some parts).

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • F Offline
            F Offline
            fcrochik
            wrote on last edited by
            #23

            [quote author="Volker" date="1294273445"]From http://www.koffice.org/contribute/:

            bq. KOffice is released under the LGPL v2+ (and GPL v2+ for some parts).[/quote]

            Why was that a problem then? Can't get much more flexible than that (unles you are looking for the one part that is only GPL and you want to release a closed source app).

            EDIT: before I get screamed at: warning: I don't have any idea of the details about "v2+"

            Certified Specialist & Qt Ambassador <a href="http://www.crochik.com">Maemo, Meego, Symbian, Playbook, RaspberryPi, Desktop... Qt everywhere!</a>

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on last edited by
              #24

              I'd have to extract the parts I need, remove the KDE stuff (not available on Windows and Mac) and publish it as a new LGPL project. We do not have the time for that at the moment and it's not on top of the want-have list of the customer.

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0
              • F Offline
                F Offline
                fcrochik
                wrote on last edited by
                #25

                I see.... so the issue is not exactly with the license...

                Certified Specialist & Qt Ambassador <a href="http://www.crochik.com">Maemo, Meego, Symbian, Playbook, RaspberryPi, Desktop... Qt everywhere!</a>

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  goetz
                  wrote on last edited by
                  #26

                  The license is one of the issues. Nevermind, I have some hints I will dig into further if I ever have some spare time.

                  http://www.catb.org/~esr/faqs/smart-questions.html

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kunashir
                    wrote on last edited by
                    #27

                    Volker, as your successes with excel?
                    I use libxls, but some excel's files in russian language not read correctly (I realized because of the inability to convert data from a file in UTF-16). If you have any achievements, can you tell us about them?

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      goetz
                      wrote on last edited by
                      #28

                      I did not look into libxls yet, so sorry, no advice from my side.

                      http://www.catb.org/~esr/faqs/smart-questions.html

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        Jupiter
                        wrote on last edited by
                        #29

                        is there also something for word documents (*.doc or *.docx)?

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          mogz
                          wrote on last edited by
                          #30

                          You could maybe take a look at "http://www.libxl.com/":http://www.libxl.com/

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            andre
                            wrote on last edited by
                            #31

                            [quote author="mogz" date="1309159483"]You could maybe take a look at "http://www.libxl.com/":http://www.libxl.com/[/quote]
                            That lib was already mentioned on the first page of this topic.

                            1 Reply Last reply
                            0
                            • J Offline
                              J Offline
                              Jupiter
                              wrote on last edited by
                              #32

                              well in its documentation it says it works for excel files only. i need word documents. or didnt i see the word classes?

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                mogz
                                wrote on last edited by
                                #33

                                oops! the post was meant for the main title. guess i'll have to take my time next time. sorry for that

                                1 Reply Last reply
                                0
                                • U Offline
                                  U Offline
                                  uzakm
                                  wrote on last edited by
                                  #34

                                  Hi,

                                  a lot of development has been done during the last year on the Calligra Suite filters. Calligra Suite is the fork of KOffice. You can use the koconverter to do batch conversions to ODF. However the excel filter does not follow the koconverter approach at moment. Please discuss at the #calligra channel at
                                  freenode.

                                  Consider that any of the binary files in {.doc, .ppt, .xls} use the Compound File Binary File Format.
                                  On top of it any graphics are stored in containers described by the MS-ODRAW spec. You can reuse libmso from Calligra Suite to parse and convert MS-ODRAW content to ODF. libmso makes use of msoscheme (http://gitorious.org/msoscheme) to parse the MS-ODRAW content. Also MS-PPT containers are parsed by msoscheme.

                                  Office Open XML support has been also improved a lot. Use the #calligra channel to discuss the details.

                                  1 Reply Last reply
                                  0
                                  • F Offline
                                    F Offline
                                    flight9
                                    wrote on last edited by
                                    #35

                                    Does anyone try using QSqlDatabase to do the work?

                                    1 Reply Last reply
                                    0
                                    • G Offline
                                      G Offline
                                      goetz
                                      wrote on last edited by
                                      #36

                                      [quote author="flight9" date="1333679679"]Does anyone try using QSqlDatabase to do the work?[/quote]

                                      You would need an SQL driver for that. I don't know of any one - do you do?

                                      http://www.catb.org/~esr/faqs/smart-questions.html

                                      1 Reply Last reply
                                      0
                                      • A Offline
                                        A Offline
                                        andre
                                        wrote on last edited by
                                        #37

                                        [quote author="flight9" date="1333679679"]Does anyone try using QSqlDatabase to do the work?[/quote]
                                        What are you refering to now exactly? The original question (Excel), or something else?

                                        Because for Excel, you can actually use the QODBC drivers if you want.

                                        1 Reply Last reply
                                        0
                                        • 3 Offline
                                          3 Offline
                                          3electrons
                                          wrote on last edited by
                                          #38

                                          You migt to try use OpenDocument writer supported by Qt and than convert it to Excel file with OpenOffice from command line (bacground process). Open/LibreOffice is widley present on main platforms ... unless it is mobile layer.

                                          I have not used OpenDocument but I have sucesfully converted many OO files to Excel.
                                          This method was not very fast - maybe now it will be ok .. but results were good. At least there is not much work to be done to test it.

                                          There is lot of resources how to do it in many ways using O/LO by use of extra macros or python but good statring point is soffice --help. There is --convert command that should work for this task.

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved