Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am trying to export a list view webpart as a .dwp file so I can have a look at the XML. However, the export option is missing. My initial thought was to try something like the following link:

http://snahta.blogspot.com/2010/07/sp2010-webpart-export-option-missing.html

However, even the Export Mode option under Advanced appears to be missing. I can do an export of, for example, a content editor web part without issue.

Any thoughts?

Thanks

Edit - I just read the comments on that page I linked to. They indicate a list view web part cannot be exported. Seems a bit odd since I don't remember seeing this issue on SP 2007.

share|improve this question

migrated from stackoverflow.com Mar 5 '12 at 19:30

This question came from our site for professional and enthusiast programmers.

1  
We've had some success using SharePoint Designer 2010 to open a site on which the web part was created, and then saving that to a file via the Web Part menu (saves as .webpart). –  Christine Aug 9 '11 at 18:14

4 Answers 4

The List view webpart is not exportable out of the box i'm afraid. There are 2 ways to do this:

  • first way to do this is as sssreddy said: export the site as wsp, open it (rename to .cab) or import it in Visual Studio. YOu can then find the schema, put that in a .webpart file, change the export mode in the schema import it into your site and now it will be exportable.

  • Another way would be use powershell to opem the page, get the SPLimitedWebPartManager like you would using the Object model, find the webpart and change the export mode.

share|improve this answer

Glyn Clough has a nice solution for exporting xsltlistviewwebpart

Update 2014-09-19

I have found another way to easily export any web part from a SharePoint page, without needing to update web part properties:

share|improve this answer

You can also try exporting the site as a template and then unzip the wsp file. You should be able to find "AllUserWebpart" tag for the listview webpart in one of the elements file, which will contain the schema.

share|improve this answer

An option or bug in 2010 is:

  1. Insert a WP which has the export option on top of the List WP you like to export
  2. Go into edit mode for the List WP (with the little arrow)
  3. Click on the menue (with the little arrow) of the other WP and choose Export tata... the List WP will be exportet and not the WP you ve choosen the export function from.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.