on 07-08-2008 8:28 AM
hi everybody,
I am using SAP NWDS 2004s .
I have done an application on how to export the table data into an Excel .
Now i want to get the data from an Excel file which is located in server and display that data which is in excel in a View for example a Sample view in Webdynpro .
In Sample view i took a uielement textview to display the data ....
can any one help how to procced further
Thanks in advance
Madhavi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Madavi,
Firstly i want to know which API Did you use to export the data from back end to Excel sheet?
There are couple of APIs like IText, POI. If you can tell me the API probably i can help you.
Regards,
Arun.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can make use of following code
File f=new File(<excel file Name>);
Workbook w=Workbook.getWorkbook(f);
Sheet sh=w.getSheet(0);
int cols=sh.getColumns();
int rows=sh.getRows();
for(int i=0;i<rows;i++)
{
for(int j=0;j<cols;j++)
wdComponentAPI().getMessageManager().reportSuccess(" "+sh.getCell(i,j).getContents());
}
Regards
LN
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.