Java: Apache POI Excel Spreadsheet GUI View

2019-08-30 08:47发布

问题:

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?