cancel
Showing results for 
Search instead for 
Did you mean: 

Excel file Upload in NWDS 2.0.9

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Please go through the thread

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Ayyapparaj,

Thanks for replying, I've gone through many of these threads which are already posted. But, my problem remains unsolved.

Former Member
0 Kudos

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

Former Member
0 Kudos

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());

}

}

}

Former Member
0 Kudos

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