Skip to Content
avatar image
Former Member

Composite datawindow question - page numbering

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 13, 2015 at 12:37 PM

    Hi John.

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

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • Jan 13, 2015 at 11:37 AM

    What's your PB version and build number?

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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 13, 2015 at 12:02 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Jan 13, 2015 at 02:09 PM

    Thanks , this works!

    Add comment
    10|10000 characters needed characters exceeded