Thank you for your response, but the issue is more specific than that.
The exact same Letter Head works perfectly and renders Jinja variables correctly when printing regular documents (like Sales Invoices, custom_doctype, etc.), but fails when printing reports.
To be clear:
Works fine: Document print formats (Sales Invoice, etc.)
Fails: All report print outputs ( Database Storage Usage By Tables, etc.)
“Compagnie cedante” is the name of my custom DocType, but the same issue occurs with standard Frappe reports like “Database Storage Usage By Tables” - the Jinja code appears as plain text in the PDF output.
The core problem:
Letter Head preview works correctly
Document printing works correctly
Report printing doesn’t render Jinja variables - they appear as literal text
This affects all reports across the system when using the “With Letterhead” option in both PDF and printed outputs.