SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 this link

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?

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 Mar 5 '12 at 19:30

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

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

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:

Here is the most important text from the blog post:

In SharePoint there is a hidden application page that exports web parts: /_vti_bin/exportwp.aspx. This page takes two query parameters:

  • pageurl. The absolute url of the page where the web part resides that you want to export
  • guidstring. The guid that is called webpartid in the markup on the page

So, suppose, you have this site: and a web part (id: 0c3adfe9-8f5d-4432-918a-42410e4e324d) on a page

This will be the resulting URL to export your webpart:

Paste it into the web browser address bar and you'll download an xml file with your web part definition. This method works in SharePoint 2010 and SharePoint 2013 and even in SharePoint Online (Office 365).

share|improve this answer
Even now, in 2015, it's extremely useful thing and works in sp online! Thanks! :) – Kai Sep 17 '15 at 13:43

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

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

What you also could do is open the page in SharePoint Designer, find the non exportable webpart and look for ExportControlledProperties="False". Change "False" to "True" and save the page. Go back to the page in the brwoser and you will see that the export option is now available.

share|improve this answer

Your Answer


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