Almost all web parts can be exported from a SharePoint page. An exported web part can be imported on another page or it can be used as a source in a module to provision pages. An exception is the XsltListViewWebPart, there you cannot enable exporting. I have used Glyn Clough’s method before which has worked although it is a complicated process. Now I have found another way for exporting any web part (even ListViewWebPart and XsltListViewWebPart) present on a page. A method that only involves a web browser.
How to export any web part
First, we need to find out the webpartid. To do so inspect the html markup with the web browser dev tools of your choice.
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: https://intranet.contoso.com and a web part (id: 0c3adfe9-8f5d-4432-918a-42410e4e324d) on a page https://intranet.contoso.com/Pages/default.aspx
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).
Sources
Natalia Tsymbalenko. Get the list view web part convertable
Maurice Prather. Exporting a ListViewWebPart
SharePoint StackExchange
I am glad to update my answer on SharePoint StackExchange site and provide a much easier way of exporting any web part from SharePoint.