How to call print trigger function in custom button of a report

Hi all,
I want to print a custom report using the existing script file of printing, how to do that?

thanx

I solved it :slight_smile:

@MaysaaSafadi Could you share your code for all of us benefit :wink:

@Mohammed_Redha
Here the solution:

"onload": function(frm) {

	frm.page.add_inner_button(__("Print"), function() {
		 frm.print_report();

	});

}
1 Like