Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unhandled Exception in OCX
Message
From
20/08/2020 01:04:15
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01675817
Message ID:
01675828
Views:
93
>>I am getting an unhandled exception in an ActiveX control, which seems to be difficult to avoid. I only wonder if there is a way in VFP from the calling method to avoid showing the message. The messagebox is a FATAL ERROR messagebox created by the ActiveX, but I was hoping to have something similar like in Word OLE to switch messages off. In the ActiveX there is no such property to disable output.
>>Does someone know of a workaround?
>
>Is it an ActiveX you can get any support with or you're on your own?

Thanks for the suggestion, it's the PDF Viewer of Visage (VSPDFViewer.ocx), so probably we could get some support, will check that out. Perhaps we will also look at some alternative controls to see if another would be a better fit. When implementing this control it was very easy to integrate, but we did not test this with all different versions of PDF files.

In the meantime I found out that the viewer produces this error only with PDF documents version 1.7 that are created by printing to the Microsoft Print to PDF driver, which produces PDF files that are pretty large. Strangely enough, Word printing to PDF produces also version 1.7, but those are working well.

I can work around the problem by investigating the file content and check for "/Producer (Microsoft: Print To PDF)", for those I would the skip the preview just to avoid the message, probably I will also use pdfgrep to at least show the text based content.
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform