Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Page numbering by master page
VinceG
I apologize in advance if question has already been asked and resolved in past topics but I have not found anything very similar, plus looking for an up to date BIRT 3.7 solution without much complex script solution.
Here is my requirement for my BIRT 3.7 report (using run and output straight to PDF):
MasterPageA (instead of having Page 1 of 2, I am getting Page 1 of 3)
Page1
MasterPageA
Page2
MasterPageB
SummaryPage (always only one page)
I am using auto-text in the header of masterPage. My question is how can I have access to the total-page variable, so I can display in my masterPageA something like (total-page) - 1 ?
Any ideas are much appreciated.
Thanks
Find more posts tagged with
Comments
mwilliams
You can't use the export to PDF from the viewer? When you deploy, your URL would use the frameset option with the URL parameter of format=pdf. With the straight to PDF output that uses the run command, I don't know that you'll be able to change the totalPage value. I'll let you know if I find a way. Let me know how you're wanting to run this to PDF.
VinceG
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="93815" data-time="1326134909" data-date="09 January 2012 - 11:48 AM"><p>
You can't use the export to PDF from the viewer? When you deploy, your URL would use the frameset option with the URL parameter of format=pdf. With the straight to PDF output that uses the run command, I don't know that you'll be able to change the totalPage value. I'll let you know if I find a way. Let me know how you're wanting to run this to PDF.<br /></p></blockquote>
<br />
We don't want to use the HTML viewer. Our requirement is to click on a button from our other application which generates the report and display right away the PDF. (no extra step of viewer, since it is always exported as PDF)<br />
<br />
So our URL looks like <a class='bbc_url' href='
http://serverA/run?__format=PDF'>http://serverA/run?__format=PDF</a>
; . Tried with frameset as <a class='bbc_url' href='
http://serverA/frameset?__format=PDF'>http://serverA/frameset?__format=PDF</a>
; but same result.<br />
<br />
Thanks for digging into this.
qos
Hi there,
I have the same need. Two different master pages, and I need to be able to do one of two possible things:
1. count the number of pages by masterpage used.
OR
2. display something like TotalNumberOfPages - 1.
I can't find a way to do either of them.
Reports will be produced to PDF using separate run and render tasks.
Any ideas?
TIA
mwilliams
Here's a report made in 3.7.0 that shows how you can use a report variable to store the last page that will be in masterpageA in the onCreate of the footer of the table. The value is then recalled in the maseterpageA footer with an autotext variable element. MasterpageB, which has the summary crosstab at the end, does not display a page total and is not included in the total count. If you're using a version before report variables were available, you should be able to do the same with a persistent global variable.
Hope this helps.