Odoo Help

0

How to display pagenumber in rml for OpenERP7

By
Drees Far
on 9/28/15, 6:20 AM 792 views

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 :/

Drees Far
on 9/28/15, 12:36 PM
1
Ankit H Gandhi(AHG)
On 9/29/15, 2:14 AM

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 :)

Drees Far
on 9/29/15, 11:55 AM

Your Welcome !!! @ Drees Far.

Ankit H Gandhi(AHG)
on 9/30/15, 1:30 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 9/28/15, 6:20 AM
Seen: 792 times
Last updated: 9/29/15, 11:55 AM