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