I am trying to make a print item on the ECB dropdown for a list item that allows printing of the item by clicking the menu item.

I can add the print item as below but how do I trigger a print when it is clicked?

<CustomAction Id="PrintListItem.ItemToolbar"
Title="Print List Item"
ImageUrl ="/_layouts/Icon/PrintIcon.jpg">
<UrlAction Url="#"/>

1 Answer 1


Let's assume you want to print some item informations. You can develop a custom application page which receives the item and list IDs, build the html and print it. You can then pass it's url to the UrlAction parameter and open it in a modal dialog way.

  • If you judge that my answer isn't useful, then please provide us with a better one.
    – KhalilG
    Mar 11, 2015 at 14:21
  • Can you expand your answer to included what goes in the custom application page? Or is there a way to print the list item without the custom application page? Mar 11, 2015 at 14:49
  • I've said that the custom master page will handle the HTML code that will be printed (Gridviews, Tables, ...). I'm unable to give more details since I don't know what information you want to print.
    – KhalilG
    Mar 11, 2015 at 14:51
  • Well if the print menu item is going to be on the ECB menu dropdown then I want to print the list item that the menu item is on. Mar 11, 2015 at 14:52
  • I'm a little bit confused, could you explain what do you mean by "Print the list item" ?
    – KhalilG
    Mar 11, 2015 at 14:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.