Java: Apache POI Excel Spreadsheet GUI View

荒凉一梦 提交于 2019-12-13 04:43:40

问题


My java application is using Apache POI to read/write Excel files. As far as I can see, Apache POI includes no support for an spread sheet view GUI.

So my question is this: What is the best way to display an Excel-like spreadsheet view GUI within my application? 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).

Any advice is appreciated. Thanks


回答1:


If you open Excel sheets within Eclipse there is an internal view using the OLE / ActiveX interface. Maybe you can investigate in how Eclipse/SWT achieves this and do it the same way using a RCP application as viewer.




回答2:


Aspose.cells can export to PDF. Your original question is vague - is just a display/printable ok, or does it have to be interactive?



来源:https://stackoverflow.com/questions/6239178/java-apache-poi-excel-spreadsheet-gui-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!