1

我正在使用 openoffice JAVA API 来插入 SECTION。我正在关注以下链接:

http://www.oooforum.org/forum/viewtopic.phtml?p=519189#519189

执行上述链接中的代码时遇到问题。我无法解析对象“serviceFactory”(如下),谁能告诉我这个对象是什么类型以及如何获取它?

xChildNamed = (XNamed) UnoRuntime.queryInterface(
XNamed.class,
serviceFactory.createInstance("com.sun.star.text.TextSection", document1));

另外,请详细说明以下调用的作用?

componentExport(document2, storeProps, tempDoc);

或者,有人可以指点我一个更好的解决方案。

4

0 回答 0