Mon, 04 Mar 2002 15:00:31 -0600
object (returned type defined in the Automation interface as an
LDispatch*). I haven't had any problems using any of their other OLE
try to call a method on it, it fails.
Here is the full calling sequence that brings me to failure
>>> from win32com.client import Dispatch
>>> app = Dispatch("AcroExch.App")
>>> pddoc = Dispatch("AcroExch.PDdoc")
>>> jso = pddoc.getJsobject
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
line 432, in __getattr__
raise pythoncom.com_error, details
com_error: (-2147467263, 'Not implemented', None, None)
in the above, app.formsVersion is an attribute, and console.Show is a
Here are some potentially useful snippets from the Acrobat docs on using
the JSObject in Visual Basic.
6. JSObject always returns values as Variants. This includes property
gets as well as
return values from method calls. An empty Variant is used when a null
is expected. When JSObject returns an array, each element in the array
Variant. To determine the actual data type of a Variant, use the utility
IsArray, IsNumeric, IsEmpty, IsObject, and VarType from the Information
module of the VBA library.
7. JSObject can process most elemental Visual Basic types for property
input parameters to method calls, including Variant, Array, Boolean,
Double, Long, Integer, and Byte. JSObject can accept Object parameters,
when the Object was the result of a property get or method call to a
JSObject fails to accept values of type Error and Currency.
I have verified that I can access the methods on JSObject as well as
subObjects, but I would really really like to be able to use this stuff
Any ideas on how i can get access to any of those methods?
Joshua Reynolds | Consultant
1016 La Posada Suite 240
Austin, TX 78752