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++

Excel API for C/C++

Scheduled Pinned Locked Moved Brainstorm
43 Posts 16 Posters 80.9k 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.
  • 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
                          • 3 Offline
                            3 Offline
                            3electrons
                            wrote on last edited by
                            #39

                            I have just find it and checked:

                            @soffice --invisible -convert-to xls filename.xlsm -> filename.xls
                            soffice --invisible -convert-to xls test.ods -> test.xls
                            @

                            Works like a charm ... I do not have any complicated files but it take about 1s to convert simple one page document.

                            1 Reply Last reply
                            0
                            • G Offline
                              G Offline
                              garfee
                              wrote on last edited by
                              #40

                              Hi Volker,

                              Have you figure out the problem to Execl API for QT/C/C++?
                              

                              How did/will you to get it done? I met the same problem with you. It had
                              trappedd me for days . I'm looking for your sharing or tips.
                              Of course, if someone have any idea or process, sharing or tips is apreciated.

                              1 Reply Last reply
                              0
                              • J Offline
                                J Offline
                                jdavet
                                wrote on last edited by
                                #41

                                FYI, I started a wiki page based on info from this thread here:
                                http://qt-project.org/wiki/Handling_Microsoft_Excel_(file_format)

                                Please help to expand it...

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

                                  [quote author="jdavet" date="1337084927"]FYI, I started a wiki page based on info from this thread here:
                                  http://qt-project.org/wiki/Handling_Microsoft_Excel_(file_format)

                                  Please help to expand it...[/quote]

                                  Thank's a lot! That summary of the current state is really helpful.

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

                                  1 Reply Last reply
                                  0
                                  • K Offline
                                    K Offline
                                    Kyle24
                                    wrote on last edited by Kyle24
                                    #43

                                    It appears that the link should be http://wiki.qt.io/Handling_microsoft_excel_file_format

                                    Scroll down a bit and there is a list of c++ Excel libraries.

                                    1 Reply Last reply
                                    1

                                    • Login

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