Das, Umesh wrote:

> Hi,
> 
> I have a requirement where I need to use a OpenOffice OLE Interface as a
> COM component to leverage it's Writer capabalities.This has to be done
> in C++.

OOo does not have a full COM bridge, it only has a OLE Automation
bridge. Using this bridge to access the OOo API is possible though a
little bit awkward.

> The problem is that, I'm new to COM. Also, I've never used the
> OpenOffice SDK. 
These two facts look as if using COM/C++ to access the OOo API isn't a
good idea.

> I came across some sample code on using the OO Writer in
> the Net. But, this was in Java. Due to my lack of familiarity with COM,
> I find it quite difficult to transliterate it in C++ Idispatch
> Interface.

Would it be possible to switch either to C++/UNO directly (no COM
involved) or use C#/.NET instead? Can you explain why you must use C++
and why you must use COM?

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to