콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
18747 화면

I have prepared a custom sales order report, including a new brand header.

Unfortunatelly header overlaps PDF report page body.

What should I do to ensure there is no overlapping between header and body? 

Thanks.

아바타
취소
베스트 답변

I tried putting margins everywhere and nothing was working for me. As soon as I used padding instead, it worked fine. I just added a padding-top to the content of the page, and it spaced it nicely away from the header.

아바타
취소

This worked for me, thank you.

베스트 답변

You can create a new div which to contains all the report body.

Then you can add the following in the div: style="top:50px" and the body div should go down.

Hope that helps you! :)

Juan.

아바타
취소
베스트 답변

You could also try fiddling with the Header Spacing and Top Margin options in the Settings > Reports > Paper Format. Increasing Header Spacing would probably help push the body down

아바타
취소
베스트 답변

I also think the best way is to do it with the Paper Format. I usually create a new paperformat.xml in the data folder of my custom module. There you can inherit the record, so you don't have to change it by hand and it will stay the same no matter where you install your custom module:

<record id="report.paperformat_euro" model="report.paperformat">
    <field name="margin_top">50</field>
    <field name="margin_bottom">40</field>
    <field name="margin_left">7</field>
    <field name="margin_right">7</field>
    <field name="header_spacing">45</field>
</record>

아바타
취소
관련 게시물 답글 화면 활동
3
4월 23
7026
0
5월 24
1854
2
5월 24
3631
3
2월 24
3116
1
7월 23
11288