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

Hello,

I want to modify my invoice report footer to show the current page and the total number of pages like this :

page:1/2 in the first page and

page:2/2 in the second page...

<place x="1.3cm" y="0cm" height="1.55cm" width="19.0cm">
                <para style="main_footer">[[ company.rml_footer ]]</para>
                <para style="main_footer">Page: <pageNumber/>/<pageCount/></para>
</place>

but pageCount don't return any number .

What's the wrong ?

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

try drawline pageCount without text or other tags instead of inside para tag

<drawString x="4.5cm" y="27.35cm"><pageCount/></drawString>
  • pageCount is defined with fix Font Helvetica and Fix Font Size 8 in rml2pdf.py
  • but own color possible

not possible

<drawString x="4.5cm" y="27.35cm"><pageNumber/>/<pageCount/></drawString>
<para style="main_footer"><pageCount/></para>
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 7 24
8577
0
thg 4 17
3259
1
thg 4 17
4638
2
thg 11 15
4974
0
thg 3 15
4735