Hi ,
I want to know is anyone is using StarOffice API to create a
word/excel from a java program. I am trying to execute SWriter.java
sample program that are downloaded as part of staroffcie_sdk. I am getting
the following error while trying to open a socket connection to the
startOffice.
getting MultiServiceFactory
Couldn't get MSFcom.sun.star.connection.NoConnectException:
java.net.ConnectException: Connection refused: no further
information
Opening an empty Writer document
Exception java.lang.NullPointerException:
In the program it is trying to open a socket connection at port 8100. I am
suspecting
some thing is not set properly.
// create connection(s) and get multiservicefactory
//the connection string to connect the office
connectStr = "socket, host=localhost,port=8100";
// create connection(s) and get multiservicefactory
System.out.println( "getting MultiServiceFactory" );
try {
xMSF = connect( connectStr );
} catch( Exception Ex ) {
System.out.println( "Couldn't get MSF"+ Ex );
}
If anyone has experience with StarOffice API , could you please tell me
what do I need to do to fix this problem and where do I get good reference
documentation on this?
Any help would be appreciated..
Tx
Goli.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets