Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8117507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:11:38+00:00 2026-06-06T04:11:38+00:00

In rml reports how can i change the current page number format from page:1

  • 0

In rml reports how can i change the current page number format from page:1 ,page:2 etc to something different. For eg:

page:1/2 in the first page and

page:2/2 in the second page…

how can i do this ? i am using openerp6.0
currently i use the following code in the company page in the openerp interface to get the page number.

<drawCentredString x="18.5cm" y="1.5cm"> Page: <pageNumber/></drawCentredString>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:11:39+00:00Added an answer on June 6, 2026 at 4:11 am

    my problem got solved just applied the below patch.

    # HG changeset patch
    # Parent 3fda5d5bbae001d42c56b5281e56fb2be0c8aa58
    [FIX] use real page count for <pageCount/> flowable
    
    
    diff --git a/bin/report/render/rml2pdf/trml2pdf.py b/bin/report/render/rml2pdf/trml2pdf.py
    --- a/bin/report/render/rml2pdf/trml2pdf.py
    +++ b/bin/report/render/rml2pdf/trml2pdf.py
    @@ -118,7 +118,7 @@
     def draw(self):
         self.canv.beginForm("pageCount")
         self.canv.setFont("Helvetica", utils.unit_get(str(8)))
    -        self.canv.drawString(0, 0, str(self.canv.getPageNumber()))
    +        self.canv.drawString(0, 0, str(self.canv._pageCount))
         self.canv.endForm()
    
    class PageReset(platypus.Flowable):
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to do something like this in a openerp report, how would I
I want to change a particular entry in a trace file. How can I
I have developed an algorithm to find factors of a given number. Thus it
Is there any Python library or some sample code which demonstrates how to convert
I am trying to insert some data. It is not getting inserted in the
I try to create a report on OpenERP. There is several methods to do
I'm trying to understand an existing web site. The site seems to be built
I'm trying to set the default and only shop language of a Satchmo 0.9.2
I am writing a parallel code in C++ on my OS X (Snow Leopard)
[2012-06-01 15:33:10,638][molisamples] ERROR:web-services:Uncaught exception Traceback (most recent call last): File osv\osv.pyo, line 122, in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.