Page 1 of 1

Page numbers not working

Posted: 21 Feb 2022, 13:26
by ej2222
Hi all,

I've created a Purchase Order layout in Sage Report Designer v5, using data from Sage Line 50 v28.

I am having a problem with page numbers.

No matter how many pages are printed, the variables REPORT.PAGE and REPORT.PAGES always equal "1".

So, on every page printed, it shows "Page 1 of 1".

Does anyone have any suggestions on what I might be doing wrong? Is there a setting somewhere I need to change? Is there anything I can do to "debug" and figure out what the problem is?

Thanks.

Re: Page numbers not working

Posted: 21 Feb 2022, 15:36
by brucedenney
Can you attach the layout to your post so I can take a look?

Re: Page numbers not working

Posted: 21 Feb 2022, 15:49
by ej2222
Sure, please see attached. Thanks Bruce.

Re: Page numbers not working

Posted: 21 Feb 2022, 16:43
by brucedenney
The main issue is the The Report Header which only appears at the start of the report and its corresponding footer that only appear at the end of the preport have been used instead of a Group Header and Footer based on the OrderNumber.

Try printing 2 orders anf you will see the issue only one prints.

You also seem to have not included a section for the Service Items on Purchase orders so S3 items will not print.

The Batch PAges would work, but if you make the report header empty and put this in a page header you will be going in the right direction.

Re: Page numbers not working

Posted: 21 Feb 2022, 18:14
by ej2222
Excellent- thanks Bruce, you were absolutely right about my report structure and I have now made those changes (except for the Service Items bit... we don't use them in our org so that was a deliberate omission for the sake of simplicity). I am still getting to grips with Sage reporting so thank you for the heads up!

REPORT.PAGE started working immediately after I made your recommended changes.

REPORT.PAGES was still not working correctly, until I changed the property "Is Cumulative" to "Automatic". That seemed to get it to behave as expected.

Re: Page numbers not working

Posted: 22 Feb 2022, 15:55
by brucedenney
Glad to be of service.