Enabling ActiveX Controls in IE 11
During conversion, in the COM environment: a -12 error is displayed. In . NET "Error with ConvertToPDF" is displayed.
This issue can occur in both the COM and .NET environment.
When using COM, a -12 error occurs "Exception caught printing PDF".
In the .NET environment, the this exception displays:
Error with ConvertToPDF
Exception
Exception caught printing PDF.
IEBrowserForm.PrintDocument
The log file in both environments records:
"Unable to cast COM object of type 'mshtml.HTMLObjectElementClass' to interface type 'ScriptX.Factory'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{BCE02EE6-7566-42E2-8FE3-48CED948908E}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
Probable Cause
ActiveX is not enabled in IE 11.
Resolution
To activate ActiveX Controls in IE 11:
- In IE 11, click on the gear iconto open the Tools menu.
- Select Internet Options> Security Tab.
- Click Custom level....
- Scroll down to the ActiveX controls and plug-ins
- Enable the option named: Run ActiveX controls and plug-ins.
- Click OK, and OK
Note: For -12 ConvertToPDF errors in .NET, also see: Resolutions for Common WebGrabber Error Codes.
Comments
0 comments
Please sign in to leave a comment.