level 1
tokimekiyxp
楼主
JodConverter2.2中可以这样:
OpenOfficeConnection connection = new SocketOpenOfficeConnection("192.168.1.123",8100);
connection.connect();
DocumentConverter converter = new OpenOfficeDocumentConverter(connection);
converter.convert(inputFile, outputFile);
但是JodConverter3.0中就没有设置Host地址的地方了,如下:
DefaultOfficeManagerConfiguration dmc = new DefaultOfficeManagerConfiguration();
dmc.setOfficeHome("C:\\Program Files\\OpenOffice\\OpenOffice.org 3");
OfficeManager officeManager=dmc.buildOfficeManager();
officeManager.start();
OfficeDocumentConverter converter = new OfficeDocumentConverter(officeManager);
converter.convert(inputFile, outputFile);
officeManager.stop();
求解答!!有用过的人吗?我看了下API文档,都没找到在哪儿设置Host地址
2012年03月29日 06点03分
1
OpenOfficeConnection connection = new SocketOpenOfficeConnection("192.168.1.123",8100);
connection.connect();
DocumentConverter converter = new OpenOfficeDocumentConverter(connection);
converter.convert(inputFile, outputFile);
但是JodConverter3.0中就没有设置Host地址的地方了,如下:
DefaultOfficeManagerConfiguration dmc = new DefaultOfficeManagerConfiguration();
dmc.setOfficeHome("C:\\Program Files\\OpenOffice\\OpenOffice.org 3");
OfficeManager officeManager=dmc.buildOfficeManager();
officeManager.start();
OfficeDocumentConverter converter = new OfficeDocumentConverter(officeManager);
converter.convert(inputFile, outputFile);
officeManager.stop();
求解答!!有用过的人吗?我看了下API文档,都没找到在哪儿设置Host地址