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 “http://188.226.134.172/”.
send @ jquery.min.js:4
ajax @ jquery.min.js:4
frappe.request.call @ desk.min.js:130
frappe.call @ 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?

@ahmadRagheb,

Please pull the latest changes in frappe/erpnext

pushed a fixed on develop https://github.com/frappe/erpnext/pull/9268 & https://github.com/frappe/frappe/pull/3476

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: