HI there does anybody knows how to create print format for query report i am create reports for school
Hi @dynovative
Query Report does not offer print formats.
You can create custom doctype and render data in child tables which then can be handled easily for report print formatting by working with either Print Format Builder or writing custom html as well.
can you guide me little more please
Hello,
You can create a print fomat for report as well.
You will get this objects in report template:
const content = frappe.render_template(template, {
title: __(this.report_name),
subtitle: print_settings?.include_filters ? filters_html : null,
filters: applied_filters,
data: data,
original_data: this.data,
columns: columns,
report: this,
});
Reference:
When Printing/PDF a report:
Default Frappe Template:
I hae question i tried from this method does i have to write print format but not in file code i have set format type js and write jinja code in ui area not backend files
Yes! Not require to write in files, If it is not standard.

