Script Report print View

I have notice sales invoice has this print preview

Ang script reports like profit and Loss has this print preview

Is it possible to have a print preview like the sales invoice in a script report?

1 Like

@ccfiel check this:

https://frappe.github.io/frappe/user/guides/reports-and-printing/print-format-for-reports.html

Hello @rmehta,

Thanks for the reply. :smile: I have already made this kind of report but I did not get this kind of header

When doing this https://frappe.github.io/frappe/user/guides/reports-and-printing/print-format-for-reports.html the link you given. It will just automatically preview the full page html format no choice to render it as pdf not like the the sales invoice print format it has an option “Print”", “Edit”, “Full Page” and “PDF”. Can I do that in script report?

Is there away to generate a pdf not the html one in script report? I have notice script report generate an html format.

Yeah seems like we need PDF for reports! Maybe you can use the API for now.

1 Like

@rmehta yes I am using @bohlian PR for now https://github.com/frappe/frappe/pull/1517 :smile: