| View previous topic :: View next topic |
| Author |
Message |
rs2.pt General User

Joined: 20 Oct 2008 Posts: 8
|
Posted: Mon Oct 27, 2008 2:01 am Post subject: |
|
|
to many work arrounds, on 2.4.1 was way simplier... at least for my needs; witch is comunicating/calculating over an ODS sheet using C#. geesh...
I rooled back my project, and put 2.4.1 Calc.exe as requirement, and offer a link on a setup on cd instalation with 2.4.1 - only Calc.exe is required ,it is not so "cool", or not so "pro". My app is a ClickOnce (with on/off line state) type, and the users could happen to have some weird policies about changes on registries... I dont know.
Yet there is a small group on our clients that has OpenOffice needs because they dont have excel. The rest has Excel 2003 minimum, so since my app already worked based on excel, the OO 2.4.1 is an extra...
Thanx for all guys, it a pitty that issue on 3.0, but for now 2.4.1 it will do the stuff.
Maybe I am to lasy to, and its my fault, I develop from about 6 years over Microsoft envoirment using MS toos like Visual Studio, and this was my first exeperience qith OpenSource OpenOffice apis... |
|
| Back to top |
|
 |
parc Power User

Joined: 09 Nov 2007 Posts: 55 Location: Hamburg
|
Posted: Thu Oct 30, 2008 1:21 pm Post subject: |
|
|
| rs2.pt wrote: | to many work arrounds, on 2.4.1 was way simplier... at least for my needs; witch is comunicating/calculating over an ODS sheet using C#. geesh...
|
Be prepared to have this problem also with 2.4.1 installations. I looked today at computer in our company (windows XP SP3), where the opening of OO 2.4.1 via .NET failed. It was the only one computer, where using OO 2.4.1 via our program failed.
The reason was very simple - the cli-libraries were NOT stored within the GAC. I tried to repair the installation with the installer option, but this did not help. I deinstalled the 2.4.1 and installed it again and then it worked. |
|
| Back to top |
|
 |
cycnus General User


Joined: 28 Jun 2007 Posts: 8 Location: Hong Kong
|
Posted: Wed Nov 05, 2008 12:11 pm Post subject: A recap on the subject |
|
|
I've made a blog entry on getting OpenOffice 3 and .Net to work:.
http://blog.nkadesign.com/2008/net-working-with-openoffice-3/
Most of the information was gleaned from this thread, Marten Feldtmann's sample code and the OO documentation.
Hope others will find it useful. |
|
| Back to top |
|
 |
parc Power User

Joined: 09 Nov 2007 Posts: 55 Location: Hamburg
|
|
| Back to top |
|
 |
baselnimer General User

Joined: 20 Sep 2007 Posts: 12
|
Posted: Sat Nov 22, 2008 9:35 pm Post subject: Exact same problem |
|
|
I want to make sure that i applied the correct fix:
1- Changed HKEY_LOCAL_MACHINE\SOFTWARE\OpenOffice.org\Layers\URE\1 to C:\Program Files\OpenOffice.org 3\URE\bin
2- Added C:\Program Files\OpenOffice.org 3\program to system PATH.
i found nothing about openoffice.org in HKEY_CURRENT_USER
Do i have to install .NET framework 3.5? i am using VS 2005 (.NET framework 2.0).
Please help. |
|
| Back to top |
|
 |
cycnus General User


Joined: 28 Jun 2007 Posts: 8 Location: Hong Kong
|
Posted: Sat Nov 22, 2008 10:02 pm Post subject: Re: Exact same problem |
|
|
@baseliner: read my article, you can just the the code provided.
You don't change the registry at all.
You just use it to find the real paths where OpenOffice stores its libraries and then use these results to create a local environment variable called UNO_PATH and append the OOo executable directory to the PATH environment variable.
And yes, the documentation for OOo 3 says you need .Net 3.5 |
|
| Back to top |
|
 |
baselnimer General User

Joined: 20 Sep 2007 Posts: 12
|
Posted: Sat Nov 22, 2008 10:21 pm Post subject: Thank you |
|
|
Thank you, it worked.
I was implementing the code at the following article:
http://www.forteanradio.com/?p=4
but then noticed what the code is doing, then got your code. i tried your code and it works.
BTW: it worked without .net 3.5?!!!
do i need 3.5 for a specific features? just wanted to know.
Thanks cycnus |
|
| Back to top |
|
 |
|