on 03-20-2008 8:30 AM
Hi ,
I am working on NWDS 2.0.9. Can somebody tell me how to upload an Excel file, using File Upload UI element and update my Context.
-->IWDResource cannot be implemented in this version.
-->Also FileUpload UI Element does not have a resource property, in this version.
I have tried using POI , jxl but my code generates NoClassDefFoundError: or FileNotFoundError:
Thanks in advance.
Shibin
PS: If some one can give me a simple code it will be very useful.
Edited by: Shibin Kumblat on Mar 20, 2008 2:01 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It would be really help full if you could post the area where you are stuck.
"I have tried using POI , jxl but my code generates NoClassDefFoundError: or FileNotFoundError:"
Pl dont try to mix POI and Jxl either use POI or Jxl
as per your error its clear that at runtime this api are not available,
Create a external library and then refer this in the dependencies of your DC.
Regards
Ayyapparaj
hi ,
here is the code
Workbook wb= Workbook.getWorkbook(new File("e:/file1.xls"));
for (int shNo = 0; shNo < wb.getNumberOfSheets(); shNo++)
{
Sheet sheet = wb.getSheet(shNo);
for (int i = 1; i < sheet.getRows(); i++)
{
for (int j = 0; j < sheet.getColumns(); j++)
{
wdComponentAPI.getMessageManager().reportSuccess(""+sheet.getCell(j,i).getContents());
}
}
}
Hi Ayyapparaj,
I tried the code as a simple stand alone java application. It works perfectly fine . but when i
use it in WebDynpro the jxl API is not available at run time. I cannot create external Library as i'm using the older version in which the functionality is not available. Do you have any suggestions??
Please do reply.
Regards,
Shibin
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.