Today I tried enabling the export option on a custom web part.

To do this I went through the following steps:

  1. Opened SharePoint Designer
  2. Opened the site that contained the web part
  3. Detached the layout and opened the page that shows the web part.
  4. Clicked on the web part in the design mode and found the corresponding code.
  5. Added ExportMode=”All” so that the web part looked like this:

<aspSample:CustomWebPart id=”MyWebPart” runat=”server” ExportMode=”All” />

Quite easy after all.

By Pieter Veenstra

Business Applications and Office Apps & Services Microsoft MVP working as a Microsoft Productivity Principal Consultant at HybrIT Services. You can contact me using contact@veenstra.me.uk.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: