Re: [python-win32] Implementing Collections / Shim-ing Word

2008-07-12 Thread Mark Hammond
> How do I create a COM server that emulates the COM interface of MS > Word? Specifically, returning this 'Documents' collection in what ever > is the proper form. That is a very tough question - I doubt many people are familiar enough with the implementation details of Word to know for sure. > M

Re: [python-win32] Implementing Collections / Shim-ing Word

2008-07-12 Thread jeff sacksteder
>> If I can get an understanding of how these collections work on the >> Python side vs the COM side, I'll be make some progress. > > So what is you question? How do I create a COM server that emulates the COM interface of MS Word? Specifically, returning this 'Documents' collection in what ever i

Re: [python-win32] Implementing Collections / Shim-ing Word

2008-07-12 Thread Mark Hammond
> With both the actual(MS Word) and simulated(my COM server) > configurations, I am returned a generic COM object when trying to use > the 'Documents' object. > > >>> w = Dispatch("Word.Application.8") > >>> d = w.Documents > >>> d > > > > I think this relates to being late-bound. Anyway, whereas

Re: [python-win32] Implementing Collections / Shim-ing Word

2008-07-11 Thread jeff sacksteder
ED] [mailto:python-win32- >> [EMAIL PROTECTED] On Behalf Of jeff sacksteder >> Sent: Thursday, 3 July 2008 12:56 AM >> To: python-win32@python.org >> Subject: [python-win32] Implementing Collections / Shim-ing Word >> >> I have a legacy application that uses

Re: [python-win32] Implementing Collections / Shim-ing Word

2008-07-02 Thread Mark Hammond
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python-win32- > [EMAIL PROTECTED] On Behalf Of jeff sacksteder > Sent: Thursday, 3 July 2008 12:56 AM > To: python-win32@python.org > Subject: [python-win32] Implementing Collections / Shim-ing Word > > I have

Re: [python-win32] Implementing Collections / Shim-ing Word

2008-07-02 Thread Tim Roberts
jeff sacksteder wrote: Well, COM objects don't have members (externally). Everything is a function. If everything is a function, what's _public_attrs_ for? I suppose it's really a matter of semantics more than a useful distinction. _public_attrs_ creates what COM calls a "property"

Re: [python-win32] Implementing Collections / Shim-ing Word

2008-07-02 Thread Tim Roberts
jeff sacksteder wrote: I have a legacy application that uses Word as printing engine for standardized forms via COM. I'm trying to develop a thin COM server shim that implements the minimum required to intercept those requests and routes them to another application(likely OOo). I had hoped that t

[python-win32] Implementing Collections / Shim-ing Word

2008-07-02 Thread jeff sacksteder
I have a legacy application that uses Word as printing engine for standardized forms via COM. I'm trying to develop a thin COM server shim that implements the minimum required to intercept those requests and routes them to another application(likely OOo). I had hoped that the free Word doc viewer i