Error in Printing Report or PDF

Hi ,
I’m using
ERPNext: v8.0.9 (master)

Frappe Framework: v8.0.11 (master)

we have this problem when trying to print or export pdf for any Report :slight_smile:

Uncaught TypeError: Cannot read property ‘default_letter_head’ of undefined
at Object.frappe.ui.get_print_settings (form.min.js:392)
at HTMLAnchorElement. (report.min.js:74)
at HTMLAnchorElement.dispatch (jquery.min.js:3)
at HTMLAnchorElement.$event.dispatch (report.min.js:216)
at HTMLAnchorElement.r.handle (jquery.min.js:3)
jquery.min.js:4 XHR finished loading: POST “”.
send @ jquery.min.js:4
ajax @ jquery.min.js:4 @ desk.min.js:130 @ desk.min.js:125
refresh_notifications @ desk.min.js:1173
(anonymous) @ desk.min.js:1173

Hi @ahmadRagheb! Is this happening in all report or print format? Can you please check if your Letter Head is existing and have it as default?


Please pull the latest changes in frappe/erpnext

pushed a fixed on develop [minor] fixed Cannot read property 'default_letter_head' of undefined by mbauskar · Pull Request #9268 · frappe/erpnext · GitHub & [minor] print_template and frappe.render_grid fixes by mbauskar · Pull Request #3476 · frappe/frappe · GitHub

If I am using your online version, how can I update it to get rid of the bugs of cannot print/PDF the report?
I am even not getting an error, just no response!! very annoying!

Hi @creamdory just in the reports , print format working fine printing and exporting pdf no problem …
i checked letter head and it exist and default

Hi @makarand_b i will pull frappe/erpnext and then tell you it works :slight_smile: