Export data to Excel from Silverlight/WPF DataGrid

Data export from DataGrid to Excel is very common task, and it can be solved with different ways, and chosen way depend on kind of app which you are design. If you are developing app for enterprise, and it will be installed on several computes, then you can to advance a claim (system requirements) with which your app will be work for client. Or customer will advance system requirements on which your app should work. In this case you can use COM for export (use infrastructure of Excel or OpenOffice). This approach will give you much more flexibility and give you possibility to use all features of Excel app. About this approach I’ll speak below. Other way – your app is for personal use, it can be installed on any home computer, in this case it is not good to ask user to install MS Office or OpenOffice just for using your app. In this way you can use foreign tools for export, or export to xml/html format which MS Office can read (this approach used by JIRA). But in this case will be more difficult to satisfy user tasks, like create document with landscape rotation and with defined fields for printing.

At this article I'll show you how to work with Excel object from .NET 4 and Silverlight 4 with dynamic objects and give you an approach which allow you to export data from DataGrid Silverlight and WPF controls.

Read more...

Published Wednesday, April 21, 2010 10:47 PM by outcoldman

Comments

# re: Export data to Excel from Silverlight/WPF DataGrid

Wednesday, August 10, 2011 8:39 PM by Ralph Lauren outlet

Iam glad l came across this post, very educating. I will subscribe to your rss for future update.<a href="www.ralph-laurenoutletonline.com/" title="Ralph Lauren outlet">Ralph Lauren outlet</a>

# re: Export data to Excel from Silverlight/WPF DataGrid

Thursday, August 11, 2011 5:50 AM by chaussure Nike Air Max

Amazing, I found your site on google poking around for something completely different and I really enjoyed your site. I will stop by again to read some more posts.  Thanks!<a href="www.nikeairmaxcherfr.com/" title="chaussure Nike Air Max">chaussure Nike Air Max</a>

# re: Export data to Excel from Silverlight/WPF DataGrid

Friday, August 12, 2011 4:13 AM by baseball caps

I love your homepage, the way I love air. Ok just kidding but really good explanations though .

# re: Export data to Excel from Silverlight/WPF DataGrid

Friday, August 12, 2011 4:52 AM by Birkenstock sandals

I wanted to thanks for this great read!! I undoubtedly loved every little little bit of it.<a href="www.birkenstocksandalscheapsale.com/" title="Birkenstock sandals">Birkenstock sandals</a>

# re: Export data to Excel from Silverlight/WPF DataGrid

Monday, August 15, 2011 8:52 PM by Moncler sale

This is easier and surely gives comfort to us. Thanks for sharing. I really enjoy the information.keep up the good work.<a href="www.usamonclersale.com/" title="Moncler sale">Moncler sale</a>

# re: Export data to Excel from Silverlight/WPF DataGrid

Tuesday, August 16, 2011 10:47 PM by Louis Vuitton bags oulet

One of the most useful websites I have found during my research, thanks a lot!<a href="www.cheaperlouisvuittonbagsoutlet.com/" title="Louis Vuitton bags oulet">Louis Vuitton bags oulet</a>

# re: Export data to Excel from Silverlight/WPF DataGrid

Saturday, August 20, 2011 3:00 AM by designer handbags onsale

Great post with many different useful details. My fitness routine is made up mainly of high intense interval training.<a href="www.cheap-designerhandbagsonsale.com/" title="designer handbags onsale">designer handbags onsale</a>

# re: Export data to Excel from Silverlight/WPF DataGrid

Monday, September 05, 2011 2:46 AM by burberry bags outlet

I like this concept. I visited your blog for the first time and just been your fan. Keep posting as I am gonna come to read it everyday.<a href="www.burberrybagsoutletsale.com/" title="burberry bags outlet">burberry bags outlet</a>

# re: Export data to Excel from Silverlight/WPF DataGrid

Tuesday, September 06, 2011 5:17 AM by Air Max store

Its a great start of the day with a website like this. very informative , im now one of the regular visitor of your web. Thanks.

# re: Export data to Excel from Silverlight/WPF DataGrid

Monday, September 12, 2011 10:22 PM by cheap Chanel bags

You guys keep posting awesome website, nice to read some view points from someone who obviously knows the industry.

# re: Export data to Excel from Silverlight/WPF DataGrid

Thursday, September 15, 2011 9:53 PM by cheap herve leger dress

I really loved reading your blog. It was very well authored and easy to undertand.<a href="www.cheapherveleger-sale.com/" title="cheap herve leger dress">cheap herve leger dress</a>

# re: Export data to Excel from Silverlight/WPF DataGrid

Tuesday, October 11, 2011 4:26 AM by cheap baseball hats

I feel strongly about information and love learning more on this. If possible, as you gain expertise

# re: Export data to Excel from Silverlight/WPF DataGrid

Sunday, November 13, 2011 2:56 AM by monster energy hats

Thanks for a nice post you have given to us with such an large collection of information. we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them.

# re: Export data to Excel from Silverlight/WPF DataGrid

Thursday, December 29, 2011 4:09 PM by Dexter

Best implementation of wpf extended datagrid can be found here <a href="wpfextendeddatagrid.codeplex.com/">WPF Extended DataGrid</a>

<b>Project Description</b>

This is extended version of WPF toolkit DataGrid control.

This grid has features like

1:Column Choosers.

2:AutoFilter Control.

3:Export To Excel Feature.

4:Copy Paste To Excel and Copy Paste From Excel 5:To DataGrid.

6:Three State Sorting.

7:Displaying Sort Order If Multiple Sort is done

Leave a Comment

(required) 
(required) 
(optional)
(required)