on 02-26-2008 10:36 AM
hai all,
i need to display 5 excel sheets in a view.since thats more complicated i think its better to give link to the sheets in a view.please guide me in doing that.If you find any other way of doing that plz suggest me that too.
Thanks n Regards
Sharanya.R
Hi,
You can use following code to set links to your file. that file should be in your server.
if the file is in local machine you need to upload it to server using fileupoad ui element.
FileInputStream excelCSVFile = new FileInputStream(f);
IWDCachedWebResource cachedWebResource = null;
if (excelCSVFile!= null)
{
cachedWebResource = WDWebResource.getWebResource(excelCSVFile, WDWebResourceType.getWebResourceType(
"xls",
"application/ms-excel"));
cachedWebResource.setResourceName(fileName);
}
cachedExcelResource =cachedWebResource;
wdContext.currentContextElement**().setURLlink(cachedExcelResource.getURL());
Regards
Deepak
Edited by: Deepak Tiwari on Mar 7, 2008 12:45 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Uploading and Downloading Files in Web Dynpro Java
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This link may help you.
Link:[https://www.sdn.sap.com/irj/sdn?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#58]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.