Hi Mathias,

Thanks for your reply.I need to integrate this code into an existing
codebase, which is in C++. Now, I'm assuming I need to use COM. But, If
I can avoid that, I don't mind. 

The basic requirement is to: 

1. Explore the OLE interface in Openoffice
2. Use it to embed word-like component using MFC in a sample
application. 

I will find it more comfortable if I can avoid COM and link some
existing libraries directly. If I can reach Objective 2 directly,
Without doing 1, then it is not a problem.

Regards
Umashankar Das

-----Original Message-----
From: Mathias Bauer [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 18, 2008 1:28 PM
To: [email protected]
Subject: Re: [sw-discussion] C++ code for Openoffice Writer

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]


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

Reply via email to