Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Show MS-Access-Report in Qt ?
Qt 6.11 is out! See what's new in the release blog

Show MS-Access-Report in Qt ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 2.9k Views 2 Watching
  • 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.
  • Andy314A Offline
    Andy314A Offline
    Andy314
    wrote on last edited by
    #1

    For Qt exists not really a powerful reporting-tool, compared to Micrcosoft-Access. Therefore I use Access for complex reports. I figured out how to control Access from outside to show here a external report page. But this is really a professional way. I it possible to embed (show) one or more Access reports in a QDialog directly.
    Has someone found a solution ?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Will all end users of your app have Access Installed?

      The actual Report windows seems not be exported
      https://msdn.microsoft.com/en-us/library/office/ff192120.aspx
      So not sure its possible in any easy way.

      There might be a way using
      Microsoft Report Viewer as they used (2009-ish) to export the drawing areas as
      com object, but i am not sure if 1) still the case 2) works with Access rapports.

      https://www.microsoft.com/en-us/download/details.aspx?id=45496

      Andy314A 1 Reply Last reply
      0
      • A Offline
        A Offline
        aliks-os
        wrote on last edited by
        #3

        There is a third party report toolkit for Qt. Please check QtRPT

        Andy314A 1 Reply Last reply
        0
        • mrjjM mrjj

          Hi
          Will all end users of your app have Access Installed?

          The actual Report windows seems not be exported
          https://msdn.microsoft.com/en-us/library/office/ff192120.aspx
          So not sure its possible in any easy way.

          There might be a way using
          Microsoft Report Viewer as they used (2009-ish) to export the drawing areas as
          com object, but i am not sure if 1) still the case 2) works with Access rapports.

          https://www.microsoft.com/en-us/download/details.aspx?id=45496

          Andy314A Offline
          Andy314A Offline
          Andy314
          wrote on last edited by
          #4

          @mrjj said in Show MS-Access-Report in Qt ?:

          Hi
          Will all end users of your app have Access Installed?

          If only runtime is need is best - but if Access (for 100 €) is needed it is ok, too.

          The actual Report windows seems not be exported
          https://msdn.microsoft.com/en-us/library/office/ff192120.aspx
          So not sure its possible in any easy way.

          There might be a way using
          Microsoft Report Viewer as they used (2009-ish) to export the drawing areas as
          com object, but i am not sure if 1) still the case 2) works with Access rapports.

          It seem Sql-Server is needed, but I will check it.

          https://www.microsoft.com/en-us/download/details.aspx?id=45496

          1 Reply Last reply
          0
          • A aliks-os

            There is a third party report toolkit for Qt. Please check QtRPT

            Andy314A Offline
            Andy314A Offline
            Andy314
            wrote on last edited by Andy314
            #5

            Hi @aliks-os ,
            do you have experiences with it?
            Is it possible to collect multiple SubReport to one Report

            For example:

            Report0 - total report
               Report1-sub of 0                      Report2-sub of 0
                                                           Report3 -  Sub of Report2                                                
                                                          (resizes vertical by its context and moves Report4 to bottom)
               Report 4-sub of 0
            
            1 Reply Last reply
            0
            • A Offline
              A Offline
              aliks-os
              wrote on last edited by aliks-os
              #6

              I am a developer of QtRPT.
              There is a possible to make some grouping of any field by some value.
              And final result will be as you show me

              Did you look at the examples of the report at main page?

              Andy314A 1 Reply Last reply
              0
              • A aliks-os

                I am a developer of QtRPT.
                There is a possible to make some grouping of any field by some value.
                And final result will be as you show me

                Did you look at the examples of the report at main page?

                Andy314A Offline
                Andy314A Offline
                Andy314
                wrote on last edited by
                #7

                Hi @aliks-os ,
                the features of grouping is clear, but that is not what I need and what is the real power of Access. The Reports can be independent Subreport which I can put to any place on a report - put them side by side (horizontal !) with a frame around it, etc. The height of a Subreport increases depending of its content and shifts all element below this subreport.

                Simple Example: I have 2 independent lists which I put in 2 SubReports.

                List1                 List2
                Element1         Element1
                Element2         Element2
                                          Element3
                

                I dont know how to make this with grouping.

                The shown examples are very simple reports, I dont know if it shows the full power of QtRpt.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  aliks-os
                  wrote on last edited by
                  #8

                  yes, there is not sub-reports system in it. In this case the planning of report construction is different from Access. First of all, I'd like to ask you, what source of yours data? Is it a SQL DB? if yes, you can write a SQL query, which result will contains a data of both lists. Or you want to get data from XML? or you want data from application after processing?

                  If you don't want use a SQL query - you can write a own logic on Qt/C++ and draw elements in that order that needed for you. In any case, you should read API, documentation of QtRPT and understand what it can and what you want to do.

                  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