Print Headding not showing in Custom Print Format

Hi
i have created a print headding
i need this to be shown in custom print format
where should i add this code
{{ doc.print_heading or “”}}
regards
hemanth

Can you share print format code?

you can fetch value to print format from any form using frappe.db.get_value()

e.g. frappe.db.get_value("[doctype]", "[name]", "fieldname")