Custom print button not working

Need Print button in each row for printing the details of the particular row.I have a create print format “del” for printing the detail and add print button in each row. So far I am working on custom script but not yet successful .Can anyone help?

What is your use case? Why do you want to print only single row details?

Better way add one checkbox - show/Hide in Print and show checked rows in custom print

I have multiple items added row by row . I want a print button in the every row to print the details of respective row whose print format is different.Is this possible?