on 11-03-2009 1:55 PM
Dear All
I have a requirement to read/write excel files in .xlsx format. I am good in doing it with .xls format using jxl.jar. The jxl.jar doesn't support .xlsx format. Kindly help me in understanding how do I need to proceed on reading/writing .xlsx files using Webdynpro for Java.
Thanks and Regards
Ramamoorthy D
Hi
java.lang.Iterator Its a general class . or Explain clearly.
BR
'Satish Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Experts,
This is what I get when I try to use XSSFWorkbook in the webdynpro code.
Kind Status Priority Description Resource In Folder Location
Error The project was not built since its classpath is incomplete. Cannot find the class file for java.lang.Iterable. Fix the classpath then try rebuilding this project. PD1_PORTAL_Dsignauthui~wrigley.com
Kind Status Priority Description Resource In Folder Location
Error This compilation unit indirectly references the missing type java.lang.Iterable (typically some required class file is referencing a type outside the classpath) SignAuthComp.java PD1_PORTAL_Dsignauthui~wrigley.com/gen_wdp/packages/com/wwy/signauth line 0
Thanks
Please help me out in getting an answer to resolve this issue
Regards
Ramamoorthy D
Hi,
You still can use POI. You only need an older version of it. 3.2 Final should be OK to work with 1.4
Download link below:
http://archive.apache.org/dist/poi/release/bin/poi-bin-3.2-FINAL-20081019.zip
Regards,
Daniel
Hi,
If it's not your network, than the file should be corrupted. You can always try the downloading the source, using a different mirror, or download a jar file only.. whatever.
What I think it's important you to know, and what you should be more concerned, I don't think you can "write or read" XLSX files using a lower version than POI 3.5. And as you know, POI 3.5 is Java5+.
I'd suggest you go to POI website and read all the changelog.
Regards,
Daniel
i am using jdk 1.6.22 and IBM WebSphere
when i use poi-3.6-20091214.jar and poi-ooxml-3.6-20091214.jar to read .xlsx file. but i am getting following errors
The project was not built since its classpath is incomplete. Cannot find the class
file for java.lang.Iterable. Fix the classpath then try rebuilding this project.
This compilation unit indirectly references the missing type java.lang.Iterable
(typically some required class file is referencing a type outside the classpath)
how can i resolve it
here is the code that i have used
public class HomeAction extends DispatchAction {
public ActionForward addpage(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
String name = "C:/Documents and Settings/bharath/Desktop/Book1.xlsx";
FileInputStream fis = null;
try {
Object workbook = null;
fis = new FileInputStream(name);
XSSFWorkbook wb = new XSSFWorkbook(fis);
XSSFSheet sheet = (XSSFSheet) wb.getSheetAt(0);
Iterator rows = sheet.rowIterator();
int number=sheet.getLastRowNum();
System.out.println(" number of rows"+ number);
while (rows.hasNext())
{
XSSFRow row = ((XSSFRow) rows.next());
Iterator cells = row.cellIterator();
while(cells.hasNext())
{
XSSFCell cell = (XSSFCell) cells.next();
String Value=cell.getStringCellValue();
System.out.println(Value);
}
}
} catch (IOException e) {
e.printStackTrace();
} finally {
if (fis != null) {
fis.close();
}
}
return mapping.findForward("returnjsp");
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hope any one who would like to under stand APIs for XLS will get some clue from this Forum.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.