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. Executing an existing M.S Access report from Qt
Qt 6.11 is out! See what's new in the release blog

Executing an existing M.S Access report from Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 2.4k Views 1 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.
  • T Offline
    T Offline
    Trinesh Govender
    wrote on last edited by
    #1

    Hi Guys

    I have many reports already created on M.S access, I would like to call these reports from my program.

    How can I accomplish this?

    1 Reply Last reply
    0
    • Pradeep KumarP Offline
      Pradeep KumarP Offline
      Pradeep Kumar
      wrote on last edited by
      #2

      Hi,

      Welcome to forum

      You can use QProcess to call external programs.

      Thanks,

      Pradeep Kumar
      Qt,QML Developer

      1 Reply Last reply
      2
      • Pradeep KumarP Offline
        Pradeep KumarP Offline
        Pradeep Kumar
        wrote on last edited by
        #3

        Here is the link

        http://doc.qt.io/qt-5/qprocess.html#details

        Pradeep Kumar
        Qt,QML Developer

        1 Reply Last reply
        2
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          Unfortunately MS office does not offer a command line interface so QProcess alone can't do it.

          Either you create a macro inside Access that launches the report and use QProcess to launch the macro or you link to .Net (using C++/CLI) and use something like this: http://www.codeproject.com/Articles/22195/Print-Microsoft-Access-Reports-from-C (translating from C# to C++/CLI should be pretty straightforward)

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          Pradeep KumarP 1 Reply Last reply
          3
          • VRoninV VRonin

            Unfortunately MS office does not offer a command line interface so QProcess alone can't do it.

            Either you create a macro inside Access that launches the report and use QProcess to launch the macro or you link to .Net (using C++/CLI) and use something like this: http://www.codeproject.com/Articles/22195/Print-Microsoft-Access-Reports-from-C (translating from C# to C++/CLI should be pretty straightforward)

            Pradeep KumarP Offline
            Pradeep KumarP Offline
            Pradeep Kumar
            wrote on last edited by
            #5

            @VRonin said in Executing an existing M.S Access report from Qt:

            Unfortunately MS office does not offer a command line interface so QProcess alone can't do it.

            Either you create a macro inside Access that launches the report and use QProcess to launch the macro or you link to .Net (using C++/CLI) and use something like this: http://www.codeproject.com/Articles/22195/Print-Microsoft-Access-Reports-from-C (translating from C# to C++/CLI should be pretty straightforward)

            Information provided is ellaborated and nice, thanks for the info.

            Pradeep Kumar
            Qt,QML Developer

            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