Skip to Content
0
Former Member
Feb 14, 2009 at 10:47 AM

to Download excel sheet from webdynpro application

63 Views

hi Experts,

I am trying to download an excel sheet from the webdynpro application. I have created filedownload element in the webdynpro application.

and written the below code.

String pathXLS = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(),"ABC.xls");
InputStream streamXLS = new FileInputStream(pathXLS);
IWDResource LocalConveyanceResourceXLS = WDResourceFactory.createResource(stream, "ABC.xls", WDWebResourceType.XLS, true);
wdContext.currentContextElement().setLocalConveyanceResourceTargetXLS(LocalConveyanceResourceXLS);

I am able to download an excel sheet but it is blank with no data inside ?

Points would be given to helpful answers.

Regards,

Sanjyoti.