简体   繁体   English

Java: Apache POI Excel 电子表格 GUI 视图

[英]Java: Apache POI Excel Spreadsheet GUI View

My java application is using Apache POI to read/write Excel files.我的 java 应用程序正在使用 Apache POI 读取/写入 Excel 文件。 As far as I can see, Apache POI includes no support for an spread sheet view GUI.据我所知,Apache POI 不支持电子表格视图 GUI。

So my question is this: What is the best way to display an Excel-like spreadsheet view GUI within my application?所以我的问题是:在我的应用程序中显示类似 Excel 的电子表格视图 GUI 的最佳方式是什么? I know I could parse in all of the spreadsheet info with POI and then output it in some custom java GUI components, but that would be really ghetto... especially with java's GUI (ew).我知道我可以使用 POI 解析所有电子表格信息,然后在一些自定义 java GUI 组件中解析 output 它,但这将是真正的贫民窟……尤其是使用 java 的 GUI(ew)。

Any advice is appreciated.任何建议表示赞赏。 Thanks谢谢

If you open Excel sheets within Eclipse there is an internal view using the OLE / ActiveX interface .如果您在 Eclipse 中打开 Excel 工作表,则会出现使用OLE/ActiveX 接口的内部视图。 Maybe you can investigate in how Eclipse/SWT achieves this and do it the same way using a RCP application as viewer.也许您可以研究 Eclipse/SWT 如何实现这一点,并以同样的方式使用 RCP 应用程序作为查看器。

Aspose.cells can export to PDF. Aspose.cells可以导出到 PDF。 Your original question is vague - is just a display/printable ok, or does it have to be interactive?您最初的问题含糊不清 - 只是显示/可打印,还是必须是交互式的?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM