Any ColdFusion/OpenOffice Gurus?
Posted By : todd sharp Posted At : June 21, 2008 8:52 AM Posted In: ColdFusion
12
I'm abusing the blog a bit here by asking a question, but are there any folks with experience integrating OpenOffice with CF out there? I'm really looking for a basic quick start guide for getting started. What do I need installed on the server?
I did some quick tests last night but couldn't even get past creating the bootstrap object to connect to OO. In my first attempt tried using JavaLoader to load up the OO jars, but got an 'no office executable found' exception. I then figured I'd try adding OpenOffice to my class path, but the connection just timed out.
Can anyone point me in the right direction?



Checkout this link:
http://www.javaworld.com/javaworld/jw-05-2008/jw-0...
It seems to show how to manipulate a spreadsheet using Java and explains a bit more about how OO.org can run in a server mode and manipulate many documents via network communication (regardless of language). Though, since many of them are written in Java, and CF has the capability, using the jar straight up might be preferred.
Anyway, hope that helps and good luck.
http://www.artofsolving.com/opensource/jodconverte...
If you get a chance, I'd love to see a sample of what you do with it.
@Scott: Did you have any luck getting CF to start OpenOffice as a service? I'm trying to use cfexecute with no luck whatsoever...
<cfexecute
name="cmd.exe"
arguments="/k c:/pathto/soffice -headless -accept=""socket,host=127.0.0.1,port=8100;urp;"" -nofirststartwizard" />
I think it's choking because my pathto/soffice has spaces in it - and wrapping in quotes doesn't work...
arguments="-headless -accept=""socket,host=127.0.0.1,port=8100;urp;"" -nofirststartwizard"
name="C:\Progra~1\OpenOf~1.0\program\soffice"/>
dir /x from the cmdline should tell you the 8.3 directory name if the one above is wrong.
When dealing with me, always remember, if it ain't GUI, I don't have a clue :)
Thanks in advance, Juan.