layswan
9th April 2008, 11:31
Hi,
Do anybody know how to make the page number at the report change to start at number 1 when everytime the sorting field change?
for example my PO# is a sorting field in ascending then i want to print my PO report from PO#1 until PO#10 and let's say each PO# only have 1 page to print then the report page number will start from 1 when every of the PO# is diferrent. Right now my problem is that my PO report start to print the page number as 1 for PO#1 until page number as 10 for PO#10 and this is not what i want. Help???????????????

Thanks
swan

george7a
9th April 2008, 12:37
Hi,

In the header layout, you can set a variable next to the "Page" label. Then you will have to maintain this variable from script. Whenever there is a new PO#, reset and whenever there is a new page, add one.

The following links should help:
http://www.baanboard.com/baanboard/showthread.php?t=6190
http://www.baanboard.com/baanboard/showthread.php?t=1079

- George

layswan
9th April 2008, 12:46
Hi,
Thank you for your solution but I found another solution for my problem that is use the lattr.pageno = 0 in the report script.
Anyway thank you very much ;)

swan

george7a
9th April 2008, 12:55
Yep lattr.pageno will work too :). I went for a longer way.