Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4072 มุมมอง

Hello my friends;

Please, i am creating a new report for OpenERP using RML.

So, i want to add the page number in a cell.

I have tried this but it doesnt display any thing.

RML:

<td>

<para style="P7">Page N° :<pageNumber/></para>

</td>

Despite the fact, when i want   to display the page number in the footer, everything works fine.

Any suggestion please.

Thanks a lot in advance.

Regards.

อวตาร
ละทิ้ง
ผู้เขียน

Can anyone help please need an answer guys :/

คำตอบที่ดีที่สุด

Dear Drees Far,

You can do so by just writing "< pageNumber/>" in your .rml, but you have to write it under

"template/pageTemplate/pageGraphics" tags.

For example:

<template pageSize="(595.0,842.0)" title="Test" author="Martin Simon" allowSplitting="20">

<pageTemplate>

<pageGraphics>

<drawCentredString x="10.5cm" y="0.8cm">Page: <pageNumber/></drawCentredString>

</pageGraphics>

</pageTemplate>

or

for reference go to settings > company > header/footer tab. in this you will get the reference for page number.

Hope this will solve your problem.

Thanks & Regards

Ankit H Gandhi

อวตาร
ละทิ้ง
ผู้เขียน

Thanks a lot for your answer my friend :)

Your Welcome !!! @ Drees Far.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
เม.ย. 18
2773
0
ก.พ. 18
3727
1
ก.ย. 15
3778
18
ก.ย. 15
8928
How to realise Nested RepeatIn in RML แก้ไขแล้ว
1
ก.ย. 15
3406