How to create print format for query report

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:

1 Like