Inserting ActiveX control for "Adobe PDF Reader" is ignored

Started by Carsten, January 02, 2015, 06:00:24 AM

Previous topic - Next topic

Carsten

Happy New Year,

I am trying to add a control for viewing PDF files to a Modalform by inserting ActiveX control, but after selecting the "Adobe PDF Reader" from the list, and inserting (with the "cross" point) nothing happens. There is no visual indication of the control and it is not added to the list of controls in the lower right side of the Studio.

I am probably missing something obvious, but can't figure out what.
Can anybody help?

BR
Carsten

Fred Tomke

Hi, unfortunately, I cannot reproduce this, because Acrobat Reader is not my favorite choice.
I tried PDF XChange Viewer control instead and I get a default preview of the control.
I recommend you to reinstall or register Acrobat Reader anew, restart OpenDCL Studio and try again.
Maybe - but only maybe - you could get more success to use Web control with a html with nested pdf-file.
Then you are undependend of the installed ActiveX control.

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

I was able to reproduce this. The result indicates that the control creation fails for some reason. Some controls simply don't allow creation in a "foreign" process, and that may well be the reason for the failure in this case, but I really don't know. Unfortunately there is probably not much that can be done about it, short of contacting Adobe and asking them for assistance.
Owen Wengerd (Outside The Box) / ManuSoft

Carsten

Fred and Owen, thanks very much for your feed-back.
I took Fred's advice and gave up on the ActiveX, seems to be too unpredictable when it comes to find an ActiveX which can display pdf's.

I tried to experiment with the HTML control instead, but being an illiterate when it comes to the basic terminologi and syntax, I don't think I can find a way to embed a pdf into the URL/HTML control.

The closest I got to was this:
(dcl-Html-Navigate BOMTree/Form/Html1 "file:///c:/temp/35641.pdf")
which opened the Adobe reader in a separate window and displayed the file.

But anyway,  this feature was just the "topping" to be combined with a Tree-control which shows exported data (part numbers, BOQ's etc. from our main database. And the rest of this all works brilliant.

Thanks for your help
Carsten


Fred Tomke

Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Carsten

Yes, in my "Google-Safari" of yesterday, I was around this and also another "Embed pdf file in HTML scripting method"

When I created some small "Test.HTML's" based on both of these it appears that they will Work in Google Chrome but not in IE.
Since IE is my default browser, this is the one which the OpenDCL will use for it's HTML-control.

I have come to the conclusion, that this is over my head and just continue without a "pdf-preview" in my OpenDCL form, I can still have a hyperlink to the actual pdf.

Thanks for taking the time to help in this.

Carsten