Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
12215 Lượt xem

Is it possible to increase the top margin of the report body for sales.order reports?

How should it be done?    

Ảnh đại diện
Huỷ bỏ

Have a look at paper formats under Settings / Reports / Paperformats :) You can control the footer and header its spacing there.

Tác giả

Thanks Yenthe, I was looking for a way to increase space in a custom report without modifying the paper format, but obviously that would fit the issue.

Tác giả Câu trả lời hay nhất

I finally did this to increase initial space of the body:

<div class="col-xs-12">
    <br/><br/><br/>
</div>

 I did not want to modify the default paperformat and I tried top:20px without success (in different places). I also do not understand why should I specify pixels for dealing with printed document.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

If changing paper format doesn't help you, you can go to Settings > Reports and search sale for sales.order reports.

Click on Search associated QWeb views and select report_saleorder_document.

In the first div you can use style="top:20px" and your report should have margin top.

Hope that helps you. Suerte!

Ảnh đại diện
Huỷ bỏ
Tác giả

Unfortunately this did not work. I tried in the div class="page" and in the first div class="row" of the body. No success. I also do not really understand how pixels should be translated to an A4 PDF.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 15
5908
0
thg 12 17
3935
1
thg 9 17
5495
2
thg 2 17
7574
1
thg 8 16
17034