Custom print button

Hi all,
I have a report page that shows a table of data depend on filters, and i want to add a PRINT button to print the report by using the existing print function in erpnext


any suggestion plz

Any answer here PLZ?

Hi @MaysaaSafadi

Please check below code

Thank u @rohit_w
I tryed it befor, but it seems that it depends on another files