Click here to Skip to main content
16,004,727 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello friends,
I was trying to import and export excel file to database using gridview. Any anyone tell me how this can be carried out using silverlight.

Thanks in advance
Posted
Comments
nirajzambad 7-Aug-12 0:25am    
how could i export data to new row each time in pivot collection excel sheet(not a plain excel) from silverlight application.

1 solution

You will first need to get data into the Silverlight app via a web service.
Once this is done, you can export to excel using various methods - search on the internet and you shall find some approaches.

As an example, have a look at this - Silverlight 4: Interoperability with Excel using the COM Object[^]. However, using COM is not absolutely necessary - there are other ways too.

Infragistics has an export to excel control.
Or You ycould just loop through data returned by the service and export to excel on your own.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900