cancel
Showing results for 
Search instead for 
Did you mean: 

Composite datawindow question - page numbering

Former Member
0 Kudos

Hi ,

i am using a composite datawindow existing of the traditional header/detail/footer datawindow childs.

How do i obtain the current page and the total number of pages to be printed through datawindow properties in the first datawindow header child please ?

First page in the header i want to print  Page 1 / 2

Second page Page 2/2

I tried page() and pagecount() , but this gave me 1/1 over and over again...

I am overlooking something but i don't see what exactly ....

TIA

John

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi John.

Did you put the computed field in the main composite or in the child report?

Regards.

Former Member
0 Kudos

Hi Luiz,

In the first child report being the header that is.

The page number needs to be printed/situated as part of the header.

John

Former Member
0 Kudos

Hi John.

Try putting the computed field in the header of the composite, then adjust the position to be printed in the correct location.

Luiz

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks , this works!

Former Member
0 Kudos

If my memory serves me right, you will need to retrieve the datawindow and switch to print preview. Then you can get an accurate count of pages. Once that is done you can setitem the total pages to achieve what you want.

Former Member
0 Kudos

Thanks David, you are right , but this requires additional PB code , evaluate pagecount etc..

I am looking for a dw solution , so the stuff gets taken care of inside the dw and not in pb code....

Thanks !

John

Former Member
0 Kudos

What's your PB version and build number?

If I remember right there was a bug in a version.

Former Member
0 Kudos

Sorry. PB 11.5.1. build 5097