就阅读电子表格而言,Apache POI 在这里是正确的选择。 我们过去曾用它来读取/写入 Excel 文档。 当然,对于复杂的 Excel 文档来说,也存在一些缺点。
关于Excel文档的显示,您是否希望与网页上的工作表进行任何形式的交互。 如果没有,您可以将 Excel 工作表转换为 PDF/HTML 并显示。 您可以使用 OpenOffice API 来实现此转换。
编辑:也刚刚查看了 ZKSpreadsheet ...酷
Apache POI is the right thing here as long as reading the spreadsheet is concerned. We have used it in the past to read/write Excel documents. Of course there are some shortcomings where complex Excel documents are concerned.
Regarding display of the Excel document, do you want any sort of interaction with the sheet on the webpage. If not, you can convert the excel sheet to PDF/HTML and display the same. You can use the OpenOffice API's for achieving this conversion.
Edit : Just checked out ZKSpreadsheet too ... Cool
I asked a friend and he told me he used that and it worked nice, had it here on my favorites.
About the displaying: Well, that pretty much depends on the layout/design you want, but I guess you can just show it using tables, that's what they are designed for.
Edit:
I removed the link as I noticed it was an outdated API and it also wasn't what you really wanted. Though the link pointed in another question here --> http://poi.apache.org/ seems really nice for what you want
发布评论
评论(4)
您可以尝试ZK电子表格。 谷歌一下。 该网站不允许我发布 URL。
You might try ZK Spreadsheet. Google for it. The site wouldn't let me post the URL.
我过去曾使用 POI 来阅读和编写 MS Excel 文档,效果非常好: http://poi.apache .org/
因此,您需要编写一些代码来上传文件,使用 POI 解析它,然后您可以使用以下命令输出它: http://www.activewidgets.com/grid/
I've used POI in the past for reading and writing MS Excel docs it worked pretty well: http://poi.apache.org/
So you would need to write some code to upload the file, parse it with POI, then you could output it with this: http://www.activewidgets.com/grid/
就阅读电子表格而言,Apache POI 在这里是正确的选择。 我们过去曾用它来读取/写入 Excel 文档。 当然,对于复杂的 Excel 文档来说,也存在一些缺点。
关于Excel文档的显示,您是否希望与网页上的工作表进行任何形式的交互。 如果没有,您可以将 Excel 工作表转换为 PDF/HTML 并显示。 您可以使用 OpenOffice API 来实现此转换。
编辑:也刚刚查看了 ZKSpreadsheet ...酷
Apache POI is the right thing here as long as reading the spreadsheet is concerned. We have used it in the past to read/write Excel documents. Of course there are some shortcomings where complex Excel documents are concerned.
Regarding display of the Excel document, do you want any sort of interaction with the sheet on the webpage. If not, you can convert the excel sheet to PDF/HTML and display the same. You can use the OpenOffice API's for achieving this conversion.
Edit : Just checked out ZKSpreadsheet too ... Cool
我问了一个朋友,他告诉我他用过这个,效果很好,把它放在我的最爱上。
关于显示:嗯,这很大程度上取决于您想要的布局/设计,但我想您可以使用表格来显示它,这就是它们的设计目的。
编辑:
我删除了该链接,因为我注意到它是一个过时的 API,而且也不是您真正想要的。 虽然链接指向这里的另一个问题 --> http://poi.apache.org/ 看起来非常适合您想要的东西
I asked a friend and he told me he used that and it worked nice, had it here on my favorites.
About the displaying: Well, that pretty much depends on the layout/design you want, but I guess you can just show it using tables, that's what they are designed for.
Edit:
I removed the link as I noticed it was an outdated API and it also wasn't what you really wanted. Though the link pointed in another question here --> http://poi.apache.org/ seems really nice for what you want