使用 POI 或 HSSF 从 Excel 文档中提取图表?
我有一堆 Excel 文档,其中一张纸上有数据,另一张纸上有根据数据生成的图表。我想获取这些文档并从中生成一系列 HTML 页面。使用 POI(或 HSSF)知道我可以从文档中读取数据并使用某些图表引擎生成图表。但客户对我通过此操作得到的任何引擎的输出都不满意,而只会对 Excel 电子表格中已有的图表感到满意。有谁知道如何从 Excel 中将该图表提取为 JPEG/PNG/GIF?
I've got a bunch of Excel documents that have data on one sheet and a chart produced from the data on another sheet. I'd like to take those documents and produce a series of HTML pages from them. Using POI (or HSSF) know I can read the data from the documents and produce a chart using some charting engine. But the customer's not happy with the output of any engine I through this at and would be just happy with the graph that is already in the Excel spreadsheet. Does anyone know how I can extract that chart from Excel as a JPEG/PNG/GIF?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Excel 中没有存储图表“图片”,如果您不使用 Excel,则必须自己渲染图表。
There is no chart "picture" stored in Excel,you must render your chart yourself if you are not using Excel.