dbTalk Databases Forums  

Access to Ole Automation Sub-Objects

comp.databases.paradox comp.databases.paradox


Discuss Access to Ole Automation Sub-Objects in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michele
 
Posts: n/a

Default Access to Ole Automation Sub-Objects - 03-02-2007 , 02:16 AM






Hi,

I'm working with an ocx in a pdx10 environment.

I need to control some properties in an ocx for rtf to pdf conversion.
The problem is that these properties can be accessed by a sub object
interface and I'm not able to call it.

Eg.

var
oa oleauto
me oleauto
dy DynArray[] String
v1 Longint
v2 Longint
v3 Longint
endvar

oa.attach(#PDF) ; --- OCX
oa.enumProperties(dy)
dy.view("#PDF Properties") ; --- it works


; --- sub object interface ---
if not me.openObjectTypeInfo(oa,"IWPEditor") then
errorshow()
msgstop("Error","not Opened")
else
msginfo("Message","Opened")
endif

me.enumMethods(dy)
dy.view("sub-Object Methods") ; --- it works

me.enumProperties(dy)
dy.view("sub-Object Properties") ; --- it works



v1=8
v2=16
v3=1

me.SetBProp(v1, v2, v3) ; ---- it does not work





Some body can help ?


Thanks in Advantage

Sincerely
Michele

Reply With Quote
  #2  
Old   
Tony McGuire
 
Posts: n/a

Default Re: Access to Ole Automation Sub-Objects - 03-02-2007 , 08:34 AM








When you enum me.SetBProp, what variable types does that method require?


--
---------------------------------------------------------
Tony McGuire



Reply With Quote
  #3  
Old   
Robert Molyneux
 
Posts: n/a

Default Re: Access to Ole Automation Sub-Objects - 03-02-2007 , 02:25 PM



Some sub-objects can themselves be oleauto objects.

You may need to declare lots of oleauto objects and work your way down the
"tree" until ordinary properties are available.

eg

1. attach to oleobject1
2. oleobject2 = oleobject1.subobject
3. oleobject3 = oleobject2.subobject
then

set property_x of oleobject3

Vladimir Menkin has an OLE Extension kit that allows you to access
properties that are ole collections.

"Michele" <michele (AT) italsoft (DOT) 191.it> wrote

Quote:
Hi,

I'm working with an ocx in a pdx10 environment.

I need to control some properties in an ocx for rtf to pdf conversion.
The problem is that these properties can be accessed by a sub object
interface and I'm not able to call it.

Eg.

var
oa oleauto
me oleauto
dy DynArray[] String
v1 Longint
v2 Longint
v3 Longint
endvar

oa.attach(#PDF) ; --- OCX
oa.enumProperties(dy)
dy.view("#PDF Properties") ; --- it works


; --- sub object interface ---
if not me.openObjectTypeInfo(oa,"IWPEditor") then
errorshow()
msgstop("Error","not Opened")
else
msginfo("Message","Opened")
endif

me.enumMethods(dy)
dy.view("sub-Object Methods") ; --- it works

me.enumProperties(dy)
dy.view("sub-Object Properties") ; --- it works



v1=8
v2=16
v3=1

me.SetBProp(v1, v2, v3) ; ---- it does not work





Some body can help ?


Thanks in Advantage

Sincerely
Michele



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.