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. QAxWidget Adobe PDF Reader working with kit Qt 5.14.1 MSVC2017 32 but not with kit with Qt 5.14.1 MSVC2017 64?

QAxWidget Adobe PDF Reader working with kit Qt 5.14.1 MSVC2017 32 but not with kit with Qt 5.14.1 MSVC2017 64?

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.6k 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.
  • F Offline
    F Offline
    filipdns
    wrote on last edited by
    #1

    Hello guys,

    I try to read PDF in 64 bit (I'm Under Windows 7 64 Bit and kit Qt 5.14.1 MSVC2017 32 & 64 with acrobat reader DC )

    the following command is working:

    QAxWidget *pdf = new QAxWidget(this);
    pdf->setControl("Adobe PDF Reader");
    pdf->dynamicCall("LoadFile(const QString&)", file.pdf);
    
    

    but compiling the same project Under 64 bit kit return me the error:

    QAxBase::setControl: requested control Adobe PDF Reader could not be instantiated and I got blank page.

    How can I solve that please?

    I try to downgrade to with acrobat reader X but same issue

    Kind regards

    Philippe

    jsulmJ 1 Reply Last reply
    0
    • F filipdns

      Hello guys,

      I try to read PDF in 64 bit (I'm Under Windows 7 64 Bit and kit Qt 5.14.1 MSVC2017 32 & 64 with acrobat reader DC )

      the following command is working:

      QAxWidget *pdf = new QAxWidget(this);
      pdf->setControl("Adobe PDF Reader");
      pdf->dynamicCall("LoadFile(const QString&)", file.pdf);
      
      

      but compiling the same project Under 64 bit kit return me the error:

      QAxBase::setControl: requested control Adobe PDF Reader could not be instantiated and I got blank page.

      How can I solve that please?

      I try to downgrade to with acrobat reader X but same issue

      Kind regards

      Philippe

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @filipdns said in QAxWidget Adobe PDF Reader working with kit Qt 5.14.1 MSVC2017 32 but not with kit with Qt 5.14.1 MSVC2017 64?:

      but compiling the same project Under 64 bit kit return me the error

      Do you mean 32bit works?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      F 1 Reply Last reply
      0
      • jsulmJ jsulm

        @filipdns said in QAxWidget Adobe PDF Reader working with kit Qt 5.14.1 MSVC2017 32 but not with kit with Qt 5.14.1 MSVC2017 64?:

        but compiling the same project Under 64 bit kit return me the error

        Do you mean 32bit works?

        F Offline
        F Offline
        filipdns
        wrote on last edited by
        #3

        @jsulm pdf file is displayed and I can navigate within when I'm compiling with Kit Qt 5.14.1 MSVC2017 32bit but I receive QAxBase::setControl: requested control Adobe PDF Reader could not be instantiated and I got blank page.when I'm compiling the same project with kit Qt 5.14.1 MSVC2017 64bit

        jsulmJ 1 Reply Last reply
        0
        • F filipdns

          @jsulm pdf file is displayed and I can navigate within when I'm compiling with Kit Qt 5.14.1 MSVC2017 32bit but I receive QAxBase::setControl: requested control Adobe PDF Reader could not be instantiated and I got blank page.when I'm compiling the same project with kit Qt 5.14.1 MSVC2017 64bit

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @filipdns I'm not an ActiveX expert, but maybe a 64bit app can't access 32 bit ActiveX controls?
          See https://support.microsoft.com/en-us/help/2935492/64-bit-application-cannot-load-adobe-reader-activex-control-when-the-c

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          F 1 Reply Last reply
          2
          • jsulmJ jsulm

            @filipdns I'm not an ActiveX expert, but maybe a 64bit app can't access 32 bit ActiveX controls?
            See https://support.microsoft.com/en-us/help/2935492/64-bit-application-cannot-load-adobe-reader-activex-control-when-the-c

            F Offline
            F Offline
            filipdns
            wrote on last edited by
            #5

            @jsulm the problem is that using Qt 5.14.1 MSVC2017 64bit make using activex64 bit and this can not control 32bit application and acrobat reader XI or DC are 32 bit application, then this issue can not be solved and my project have to be a 32bit application.

            JonBJ 1 Reply Last reply
            0
            • F filipdns

              @jsulm the problem is that using Qt 5.14.1 MSVC2017 64bit make using activex64 bit and this can not control 32bit application and acrobat reader XI or DC are 32 bit application, then this issue can not be solved and my project have to be a 32bit application.

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #6

              @filipdns
              And that, I'm afraid, is probably a true statement. If the only alternative is to swap whole application to 32-bit, which I suspect you won't want to do, could you consider just showing PDF in external application window launched from your app, or do you have to have it as embedded control?

              F 1 Reply Last reply
              0
              • JonBJ JonB

                @filipdns
                And that, I'm afraid, is probably a true statement. If the only alternative is to swap whole application to 32-bit, which I suspect you won't want to do, could you consider just showing PDF in external application window launched from your app, or do you have to have it as embedded control?

                F Offline
                F Offline
                filipdns
                wrote on last edited by
                #7

                @JonB No I want to embedded the pdf viewer inside my application, swap to 32bit application it not big deal for me that is just pity to have to

                JonBJ 1 Reply Last reply
                0
                • F filipdns

                  @JonB No I want to embedded the pdf viewer inside my application, swap to 32bit application it not big deal for me that is just pity to have to

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by JonB
                  #8

                  @filipdns
                  I am not a Windows Qt user. But check Qt version against 32-bit under Windows --- it might apply to MinGW not MSVC, or even Linux, but I thought "recent" Qts have to be compiled 64-bit?

                  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