home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.paradox      To crash or not to crash, asks Borland      9,834 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 8,251 of 9,834   
   Robert Molyneux to Michele   
   Re: Access to Ole Automation Sub-Objects   
   03 Mar 07 07:25:44   
   
   From: ibisnest_removeantispam_@iinet.net.au   
      
   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"  wrote in message   
   news:45e7dd77$0$17952$4fafbaef@reader1.news.tin.it...   
   > 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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca