Hi Martin,

Martin Thoma wrote:
Hello!

I want to write a small application which uses OpenOffice and which I want
to share with others as freeware. The problems are:

- I don't know which port the OpenOffice is listing to (or if it listens at
all). What is the recommended way? I don't want the user to change the
Setup.xcu manually.

first of all i like the question on your subject, it was really fun in the morning ;-) You shouldn't use a socket connection. Take a look into the new SDK for OO2.0 and into the examples using the new simple bootstrap mechanism. With this new bootstrap mechanism it is not necessary to know where the office is installed. You siumply run your application and it starts the default office (if one is availble) of the user automatically.


- I don't know which path OpenOffice is installed. The problem is that I
need to know where the DLLs (for example cppu3.dll) are located to set the
path of my application.
The new process does it for you. In C++ you rename your application for example MyApp to _MyApp and copy the unoapploader binary (SDK\<platfrom>\bin directory) in the same directory as your application and rename it to your orginal application name.
MyApp -> _MyApp
unoapploader -> MyApp
That's it, the unoapploader prepare an appropriate environment and you don't need the office program director directly in your path. yur original application is started in this new environment.


The application should be written in C++, but I assume the problem occurs in
other languages as well.

we support this mechaism for Java as well ;-)

- Juergen


Thanks in advance.

Martin



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