I want to access methods and properties on an Activex DLL that I have created in VB6
Just some back ground... The VB6 DLL has the project name called PDFViewer and I have a single class clsPDFViewer. In the class there are methods and properties that I wish to use.
I am using javascript with IE9.
Basically in javascript I have made a reference to the object
Attempted two ways
var PDFViewer = new ActiveXObject("PDFViewer"); var PDFViewer = document.getElementById("PDFViewer");
An error keeps occuring saying that it cannot create ActiveX Even if I get past this error..
When i try something like this
alert(PDFViewer.Page);
then the other error is that the properties or methods do not exist can someone please help
I am new to javascript.. please be patient Its frustrating when I try one way is doesn't work for one reason and then when I try another way is doesn't work for someother reason grrrrrr...
new ActiveXObject
requires that the COM/ActiveX DLL be registered with the system. As VB6 is a 32-bit system it means you also have to be running the 32-bit version of IE. Is this the case? – Dai