Printing SharePoint lists

In a blogpost by Ishai I found some code which enables users to print out lists in a printerfriendly view; something which is missing in SharePoint by default.

To enhance the feature a little bit more, you can edit the printlist.xml file to include a description (which is displayed below the title of the menu item) and an image (which is displayed in front of the image).

For instance:

<CustomAction Id=”SPSTIPS.PrintListActionsToolbar”
RegistrationType=”List”
GroupId=”ActionsMenu”
Location=”Microsoft.SharePoint.StandardMenu”
Sequence=”1000″
Title=”Afdrukken”
Description=”Open deze lijst in afdrukweergave in een nieuw venster.”
ImageUrl=”/_layouts/images/MENUPRINT.GIF”>
<UrlAction Url=”{SiteUrl}/_layouts/PrintList.aspx?list={ListId}”/>
</CustomAction>

The image you use should be a GIF with a dimension of 34×34 pixels. Place it in the TEMPLATE\IMAGES directory in your 12 hyve.

Related posts

Latest posts

Leave a Comment

Leave a Reply

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