cancel
Showing results for 
Search instead for 
Did you mean: 

Download to Excel returning no data in the excel sheet

udaykumar_kanike
Active Contributor
0 Kudos

Hi All,

I have used UI elements guide to create Download to Excel link in my application. I wrote following code in wdDoInit()

IWDResource resource = WDResourceFactory.createResource(new

byte[<number of bytes>], "<name of the file>",

WDWebResourceType.<type of the file>);

wdContext.currentUiResourceElement().setResource(resource);

But when I click on the link in the application, I am getting the downloaded file without records. However I am getting a character conversion window showing option to which unicode convertion i need to convert to display data.

Looks like I am missing some things. Please help me .

Thanks

Uday

Edited by: Uday Kumar Kanike on Mar 9, 2012 6:51 AM

Accepted Solutions (0)

Answers (4)

Answers (4)

p330068
Active Contributor
0 Kudos

Dear Uday

Please print the context node size which you using for download to Excel. Might there is no data in the context node.

Best Regards

Arun Jaiswal

Sreejith1
Contributor
0 Kudos

Hi,

If you are having blank record,

Check two point. One whether it is having data to write and second Whether you are storing it the same file?

I know this is basic ans, but still we forgets several times.

can check the codes with this thread.

Still if you are not getting, pls give bit more info about your code.

junwu
Active Contributor
0 Kudos

can you paste the code regarding the how you populate the excel data

Former Member
0 Kudos

Hi Uday,

Refer the below blog:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0cc41cb-9576-2b10-99a6-ab90ef28c...

Hope this will be helpful to you.

Regards,

Jithin