Salary register cannot generate pdf

hi sir,
salary register can’t print . and leave with out pay is not showing
please help sir

Uncaught TypeError: Cannot read property ‘header’ of undefined
at eval (eval at frappe.template.compile (microtemplate.js:60), :6:161)
at Object.frappe.render (microtemplate.js:74)
at Object.frappe.render_template (microtemplate.js:85)
at QueryReport.pdf_report (query_report.js:790)
at query_report.js:937
at print.js:326
at Dialog. (messages.js:76)
at HTMLButtonElement. (dialog.js:127)
at HTMLButtonElement.dispatch (jquery.min.js:3)
at HTMLButtonElement.r.handle (jquery.min.js:3)

I had the same issue
the solution is to set default letterhead from Letter Head doctype

thank you so much sir.

thank you for your valuable time sir