在我的 java 代码中找不到助手 class
Helper class is not found in my java code
我正在尝试为 Power point 集成 Apache open office sdk,所以我必须使用助手 class 但在椭圆 IDE 和 Java 中找不到它 JDK 8 also.Why?
com.sun.star.uno.XComponentContext xOfficeContext = Helper.connect();
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/simpress", "_blank", 0, pPropValues );
// create pages, so that three are available
while ( PageHelper.getDrawPageCount( xDrawDoc ) < 3 )
PageHelper.insertNewDrawPageByIndex( xDrawDoc, 0 );
Apache open office sdk 不是 Java JDK 的一部分。您必须下载 jar 文件并将其添加到您的项目或使用 Maven。
如果您想在 java 代码中使用助手 class 您必须添加 UNO jar 文件。
使用这个 link:
我正在尝试为 Power point 集成 Apache open office sdk,所以我必须使用助手 class 但在椭圆 IDE 和 Java 中找不到它 JDK 8 also.Why?
com.sun.star.uno.XComponentContext xOfficeContext = Helper.connect();
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/simpress", "_blank", 0, pPropValues );
// create pages, so that three are available
while ( PageHelper.getDrawPageCount( xDrawDoc ) < 3 )
PageHelper.insertNewDrawPageByIndex( xDrawDoc, 0 );
Apache open office sdk 不是 Java JDK 的一部分。您必须下载 jar 文件并将其添加到您的项目或使用 Maven。
如果您想在 java 代码中使用助手 class 您必须添加 UNO jar 文件。
使用这个 link: