使用java从excel读取autoshape
我必须在java中阅读一张充满流程图(椭圆形,不同类型的连接器等)的excel表。我尝试了像apache poi,jxl,jxls这样的库。从这些apache poi,jxl中被排除,因为它们并不真正支持excel自动形状。我不确定 jxls。我已经浏览过它的 api,但我不确定它是否能达到我的目的。因此我需要一些专业知识。如果可以使用 jxls 读取自动形状,请为我提供一些示例代码。任何帮助都将是救星。另外,如果可能,请告诉我是否有任何付费库可以用于此目的(Aspose.Cells 是一个,但它不支持连接器。)...提前谢谢。
I have to read an excel sheet full of flowcharts(ovals,different types of connectors etc) in java.I tried libraries like apache poi,jxl,jxls.From these apache poi,jxl are ruled out coz they dont really support excel autoshapes.I am not sure about jxls.I have gone through its api but i am not sure if it can serve my purpose.Hence i need some expertise.If autoshapes can be read using jxls please provide me some sample code.Any help would be a life saver.Also if possi let me know if there are any paid libraries serving this purpose(Aspose.Cells is one but it doesnt support connnectors.)...Thanx in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
唯一合理的解决方案是使用 Com4J 和 Excel 绑定,然后控制 Excel ActiveX 实例从中读取数据。这是 Excel 固有的功能,如果没有 Excel,您将无法做到这一点。最终您可以通过远程 OpenOfice 来完成此操作(具有本机 Java 绑定!)。
The only reasonable solution would be using Com4J, with an Excel binding, and then controlling an Excel ActiveX instance to read the data from it. This is so native to Excel that you won't be able to do it without excel. Eventually you can do this by remoting OpenOfice (has a native Java Binding!).