简体   繁体   English

XSSFWorkbook,XSSFSheet不起作用-NetBeans 8.0.2

[英]XSSFWorkbook, XSSFSheet not working - NetBeans 8.0.2

I downloaded the POI 3.11 package from the Apache repositories website, added them to my project. 我从Apache资料库网站下载了POI 3.11软件包,并将其添加到我的项目中。 After that I added xmlbeans , ooxml-schemas , but still my NetBeans 8.0.1 IDE shows an error when I declare XSSFWorkbook and XSSFSheet . 之后,我添加了xmlbeansooxml-schemas ,但是当我声明XSSFWorkbookXSSFSheet时,我的NetBeans 8.0.1 IDE仍然显示错误。

Can anybody help me here? 有人可以帮我吗? as I am not much of a core Java guy, so treat me as a novice in this domain. 因为我不是Java的核心人物,所以请把我当做该领域的新手。

This is pretty awkward but a truth also. 这很尴尬,但事实也是如此。
I found the solution, and it is in my NetBeans 8.0.2 IDE , which is when I manually typed the following code in the IDE :- 我找到了解决方案,它在我的NetBeans 8.0.2 IDE中 ,也就是我在IDE中手动键入以下代码时的方法:-

XSSFWorkbook workbook=new XSSFWorkbook();
XSSFSheet sheet=workbook.createSheet("Employee Data");

it showed an error . 显示了一个错误 But when I went on and clicked the suggestion (CTRL + Space) provided by the IDE it miraculously worked , but I do not have a logical clue about the thing though :) 但是当我继续并单击IDE提供的建议 (CTRL +空格)时,它奇迹般地起作用了 ,但是我对这件事没有逻辑上的了解:)
Hope it will be of help for NetBeans Apache POI Developers . 希望对NetBeans Apache POI开发人员有所帮助。

Thanks!!! 谢谢!!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM