Click here to Skip to main content
Click here to Skip to main content

Tagged as

Go to top

SharePoint 2010 - Export selected items to excel

, 13 Jun 2012
Rate this:
Please Sign up or sign in to vote.
Export custom list items to Excel in SharePoint 2010.
This is an old version of the currently published technical blog.

In SharePoint 2010, sites can export custom list items to Excel using the Export to Excel option in the ribbon toolbar. It will export all items in that particular view in which the option is invoked. SharePoint literally is not exporting the items it creates in the query file instead, which will have the view id and helps to query the SharePoint list data and the results are shown in the excel spreadsheet.

Now if I have a requirement something like, I need to export only specific items from the list. Let's say I want to export only 10 items out of 30 items shown in the view then there is no direct option for that. I need to create a view and apply filter to extract only the specific 10 items which I want to export. But I can' t create views every time to export any specific items. What if I don't have appropriate permissions to create views? To overcome these kind of issues, I have created a component which will export the specific items from the custom list. Its a custom action which will create the "Export to excel" ribbon button. Just selected the items and click on the button in the ribbon to export the items.

How to

  1. Deploy the WSP to the concerned web application
  2. Go to site features and activate the feature
  3. Use the export functionality in the custom list

Demo Video

<iframe width="660" height="380" src="http://www.youtube.com/embed/1mORAzQPwwo?wmode=transparent&autohide=1&egm=0&hd=1&iv_load_policy=3&modestbranding=1&rel=0&showinfo=0&showsearch=0" frameborder="0" />

Download

You can download the WSP and code from here.

License

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

Share

About the Author

Rajesh.Sitaraman
Architect
United States United States
I'm interested in C#, AJAX, SilverLight,and SharePoint now. I enjoy listening to music, movies, driving.
I love posting answers to forums, especially questions related to SharePoint Technology. Started career as c++ developer, then .Net Mobile Technologies and SharePoint now.
Follow on   Twitter

Comments and Discussions


Discussions posted for the Published version of this article. Posting a message here will take you to the publicly available article in order to continue your conversation in public.
 
QuestionNon-farm solution? PinmemberCynthia Dingman10-Sep-13 10:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 13 Jun 2012
Article Copyright 2012 by Rajesh.Sitaraman
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid