Letter Head dont show my print format

i am created a custom print format , when i am checked letter head but this print format letter head dont show

@Rahib_Hasan I believe your letter head is not properly setup. Kindly share your Letter Head

But it’s show for standard print Format , letter head setup is ok

its my letter head setup

@Rahib_Hasan . Kindly add this in your custom print format script .

{%- macro add_header(page_num, max_pages, doc, letter_head, no_letterhead) -%}
    {% if letter_head and not no_letterhead %}
    <div class="letter-head">{{ letter_head }}</div>
    {% endif %}
    {% if max_pages > 1 %}
    <p class="text-right">{{ _("Page #{0} of {1}").format(page_num, max_pages) }}</p>
    {% endif %}
{%- endmacro -%}
{{ add_header(0,1,doc,letter_head, no_letterhead) }}



Strange, have you tried creating another print format?

all custom print format are same problem

@Rahib_Hasan Did you add the above script to your custom print formats ?

thanks buddy it’s working :slight_smile:

1 Like

Glad to help . Thanks

This topic was automatically closed after 24 hours. New replies are no longer allowed.