LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX: How to use Non Creatable Objects

How can I use "Non Creatable Objects" and their methods using Active X?
(I Try to interface Adobe Acrobat. I con open the Acrobat (Reader) ActiveX control, but I need the functionality of Full Acrobat which I can find in the Type Library but are not creatable objects. How Can I use this functionality?)

Cheers, Rainer
0 Kudos
Message 1 of 5
(3,684 Views)
Hi,

Two things come to mind...

1) The class is not createable because it doesn't have a front panel
container. Open it in the diagram with the "open automation reference"
function. Right click it to select a class, and create a control from it.

2) The non createable objects can be subclasses of another class. A top
level control might have some properties. These properties might include
objects that are not createable (directly) but have only meaning when they
are retreived from the top level control.

These properties might by references of the class type, but unfortunatly
sometimes the property returns a variant. These variants can be cast (using
the type cast function) to a (non createable) class. This does require
insight information (what class it sh
ould be), or lots of experiments (until
a property doesn't return errors).

Regards,

Wiebe.



"R.Rawer" wrote in message
news:506500000008000000A97F0000-1042324653000@exchange.ni.com...
> How can I use "Non Creatable Objects" and their methods using Active
> X?
> (I Try to interface Adobe Acrobat. I con open the Acrobat (Reader)
> ActiveX control, but I need the functionality of Full Acrobat which I
> can find in the Type Library but are not creatable objects. How Can I
> use this functionality?)
>
> Cheers, Rainer
0 Kudos
Message 2 of 5
(3,684 Views)
Hi Wiebe,

1) I'm not quite shure which function you're talking about - I only found:
"Open Application Reference" and "Automation Open" (LabVIEW 6.1) I guess Automation Open would be the right function. I Tried that and am obly able to open the Axtive X Cotroll which is basically a subset of Acrobat Reader. I want the Acrobat Functionality which is listed in a seperate Type Library (called "acrobat version 1.0") the type Library I can open is called "Acrobat Controll for Active X 1.3" and is as stated before only a subset of the functionality needed)

2) Since tey are in a different Type Library and since I cant find any method that in the other type library that suggests that there is any way I could get a refnumber of the extended functionality I don
't seeI where to get this refnum from.

Thanx for the help anyway,
CHeers, Rainer
0 Kudos
Message 3 of 5
(3,684 Views)
Hi,

Sorry about the mixup, I did ment the "Automation Open" function.

What error do you get if you try to open the other? I cannot test it, I
don't have the control. Do you get any properties, or don't you even get
this far?

Regards,

Wiebe.



"R.Rawer" wrote in message
news:5065000000050000003BE20000-1042324653000@exchange.ni.com...
> Hi Wiebe,
>
> 1) I'm not quite shure which function you're talking about - I only
> found:
> "Open Application Reference" and "Automation Open" (LabVIEW 6.1) I
> guess Automation Open would be the right function. I Tried that and am
> obly able to open the Axtive X Cotroll which is basically a subset of
> Acrobat Reader. I want the Acrobat Functionality which is listed in a
> seperate Type Library
(called "acrobat version 1.0") the type Library
> I can open is called "Acrobat Controll for Active X 1.3" and is as
> stated before only a subset of the functionality needed)
>
> 2) Since tey are in a different Type Library and since I cant find any
> method that in the other type library that suggests that there is any
> way I could get a refnumber of the extended functionality I don't seeI
> where to get this refnum from.
>
> Thanx for the help anyway,
> CHeers, Rainer
0 Kudos
Message 4 of 5
(3,684 Views)
Hi,

"Error 3005 occured at Object spcified is not creatable in test.vi"
(As I mentionen, within the type library there is no creatable objects. Heaps of other methods which I'd like to use but none I can create...)

Cheers, Rainer
0 Kudos
Message 5 of 5
(3,684 Views)