Hi Mathias,
  Thank you for yoir reply. I've made further progress since, then.I've
created a container for the ProgID "soffice.StarWriterDocument.6" . I
found this simpler to use on than the default OpenOffice install which
needed me to do a few more steps to get a Writer Handle.

My next problem is to port this into Linux. I've used VisualSoft Mainwin
for Redhat Linux 7.3 to port the MFC APP(OLE container).

When I execute. I'm not getting the corresponding ProgId mentioned
above. I was wondering how, StarOffice is installed in UNIX so that, I
can debug to figure out problem of the system registry not being
present.

Any help on this will be appreciated.

Thanks in Advance 

Regards
Umashankar Das
P.S.: I'm assuming there is COM/OLE support for OpenOffice/StarOffice in
Linux. If I'm wrong, please correct me.

-----Original Message-----
From: Mathias Bauer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 31, 2008 9:11 PM
To: [email protected]
Subject: Re: [sw-discussion] C++ code for Openoffice Writer

Hi Umesh Das,

sorry that my answer took so long, but I didn't have time for our
mailing lists in the last week.

You can use the complete OOo API with C++ directly. You will need our
SDK that will provide you with some tooling and libaries that allow you
to do that. Our SDK contains some examples written in C++ that show how
it basically works.

OOo does not use COM but its own object technology called UNO. It shares
a basic idea with COM: objects are accessed through their interfaces and
these interfaces can be used in several programming languages. For UNO
this is Java, C#, C++, OOoBasic, VB and Python.

Please check out our SDK, the C++ example code and have a look into our
Developer's Guide. Concrete questions to particular APIs are best
discussed on the [EMAIL PROTECTED] mailing list. In case it's
Writer related of course also on this list.

Best regards,
Mathias

Das, Umesh wrote:

> 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]
> 


--
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