1

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"
GroupId="PrintListItem"
RegistrationType="List"
RegistrationId="101"
Location="EditControlBlock"
Sequence="300"
Rights="ViewListItems"
Title="Print List Item"
ImageUrl ="/_layouts/Icon/PrintIcon.jpg">
<UrlAction Url="#"/>
</CustomAction> 
0

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 '15 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? – motionpotion Mar 11 '15 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 '15 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. – motionpotion Mar 11 '15 at 14:52
  • I'm a little bit confused, could you explain what do you mean by "Print the list item" ? – KhalilG Mar 11 '15 at 14:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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