Hi there,
I have written an ActiveX control using Delphi called dummyprint.ocx. If I embed this as an OLEControl after registering it in Powerbuilder I can access it fine using the dummyprint.object. notation and it behaves as expected.
I do not wish to embed it though I would rather create an OLEObject within a script and access it this way i.e. OLEOBject dummy_print
dummy_print= CREATE OLEObject
li_rtn = intermec_print.ConnectToNewObject("C:\DummyPrint.ocx"
intermec_print.object.++++and so on
however I keep getting a return of -2 when I try to connect so I haven't connected correctly and consequently cannot access any properties / functionality.
Any ideas ?
Thanks
Niall
I have written an ActiveX control using Delphi called dummyprint.ocx. If I embed this as an OLEControl after registering it in Powerbuilder I can access it fine using the dummyprint.object. notation and it behaves as expected.
I do not wish to embed it though I would rather create an OLEObject within a script and access it this way i.e. OLEOBject dummy_print
dummy_print= CREATE OLEObject
li_rtn = intermec_print.ConnectToNewObject("C:\DummyPrint.ocx"
intermec_print.object.++++and so on
however I keep getting a return of -2 when I try to connect so I haven't connected correctly and consequently cannot access any properties / functionality.
Any ideas ?
Thanks
Niall