Issue 4642 - Cannot use OO com interface in python
Summary: Cannot use OO com interface in python
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: PC Other OS
: P3 Trivial (vote)
Target Milestone: ---
Assignee: joachim.lingner
QA Contact: issues@udk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-08 15:10 UTC by Unknown
Modified: 2002-09-24 16:38 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-05-08 15:10:51 UTC
I'm not sure if this is because the com interface is still a work in progress,
but I am unable to use python to automate openoffice. This is what I am getting.

Python 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import win32com
>>> import win32com.client
>>> objServiceManager = win32com.client.Dispatch("com.sun.star.ServiceManager")
>>> objServiceManager
<COMObject com.sun.star.ServiceManager>
>>> objDesktop = objServiceManager.createInstance("com.sun.star.frame.Desktop")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: 'NoneType' object is not callable


Thanks,

Mark Roach
Comment 1 kay.ramme 2002-06-05 15:22:15 UTC
Jochen, could you please take a look?
Comment 2 joachim.lingner 2002-06-17 08:48:40 UTC
This bug has been submitted into the staroffice's internal bug 
database with the id 99957
Comment 3 joachim.lingner 2002-09-24 16:38:33 UTC
Issue is solved as of srx644a.