Exporting XSLT List View Web Part using SharePoint Designer

Imaging the following situation where you want to export an XSLT List View web part and embed it on a different site. So the good thing about this it’s easy to accomplish. I came across a great article posted by Glyn on his blog how to export an xslt viewer web part. He shows in his article some really great insight how the xslt viewer web part can be exported. The only thing he left out is that you can export XSLT List View web parts using SharePoint Designer. This feature is really well hidden in the ribbon.

In SharePoint Designer simply select the XSLT List View web part you want to export. In the Ribbon you will find a specific menu for this web part. Ribbon for the web part comes up you can select inside the “Web Part” Tab. In the far right area of the ribbon you will find two really helpful menus.

Well hidden export feature on the right side

The “To Site Gallery” option will copy the web part to your site collection web part gallery. You will also be asked how you want to name your web part, description and you will be able to change properties.

XSLT List Viewer Export Options

Another option to select is if you want to use it relative to any site where the web part will be embedded or get data only from the current site.

Web specific settings for export

The “To File” option will open the download dialog to store the web part and the configuration to a file.

As you see it’s easy to export a XSLT list view web part and use it the way you like. You can also cross embed lists from one web into another.


  1. Firstly, thanks for your post! I have followed above steps but there were some issues. I’ve got a XSLT list view webpart and it’s customized through CALM query (by filter) and xsl code. No problem when I export this webpart to file .webpart and to webpart gallery as well. But in both 2 cases I did, imported webpart was not showed as original webpart.
    I’ve checked code webpart in the page and I found that the CALM query and some properties were modified.


    Please show me what I should do to fix this problem?
    Thanks in advance!

  2. Hi Stefan,

    I tried doing the first method and inserted the web part to a different page and received the following error upon saving:
    “Error Rendering Control
    An unhandled exception has occurred.
    Cannot instantiate type ‘ErrorWebPart’ because it is not public.

    Can you help me figure this out?

    Appreciate it.

    1. Which kind of SharePoint you are on? If you use SharePoint 2013 you have to make sure that the list view renders in classic view.
      Haven’t use this method for a long time. The last i did was in 2010.

Leave a Reply

Your email address will not be published. Required fields are marked *