window.open(“/api/method/frappe.utils.print_format.download_pdf?doctype=Salary%20Slip&name=” + doc.name + “&format=Payslip%20myginne%20india&no_letterhead=0&letterhead=Myginne&settings=%7B%7D&_lang=en”);
yeah found just now
@NCP
its second step done, thank you man
Now their is one more problem, i have two print format. Let say A & B
Currently i have hard coded for one
How can i do, such that when clicked employee sees his salary slip format.
I think i have to do something more, can you tell how can i do this