Thomson S
3rd April 2012, 07:27
Hi,
I am working on the Baan reports. I need to print the page number in every page of the report. Is there any possible way for that.
shahudit
3rd April 2012, 09:02
Hi thompson
You can add a header layout and select page no in special field on report menu bar.
Thomson S
4th April 2012, 06:58
Hi, Thank you. But, the page number should be in footer of the every page of the report. like 1, 2, 3 etc.,
shahudit
4th April 2012, 08:04
Hi Thompson
Its simple...select a footer layout and do the same...page no will be printed at the bottom of each page.
Thomson S
4th April 2012, 13:32
Thank you Shahudit. I tried that. Its printing correctly for the first page as 1, but for all the remaining pages its printing '0'
mark_h
4th April 2012, 16:15
And you used the page no from the special fields as mentioned?
Thomson S
5th April 2012, 06:23
Yes !! I used the special field Page No.
mark_h
5th April 2012, 15:52
Can you post a screen shot of the layouts? Not sure what would reset the page number to 0. Is there a report script in it? Did you try putting it in debug mode and see if anything is impacting lattr.pageno?
Thomson S
6th April 2012, 12:08
Yes It does have the report script. am using lattr.pageno too in that script.
mark_h
6th April 2012, 15:25
Put it in debug mode and step thru it. Make sure your use of lattr.pageno is not causing the issue. You may even want to comment out your use of the variable and let the report handle it.
Thomson S
10th April 2012, 07:39
Its not working, since the report scripts contains lots of Predefined Variables.
Is there any other way to do it.
mark_h
10th April 2012, 16:09
Not sure what you mean it is not working. Not sure what you are doing with lattr.pageno in the report script - but try commenting all of that out. If you do that and it comes out correct on the report then you know it is the report script. Then it will be a matter of debugging what is going on in the report script.
bdittmar
10th April 2012, 17:12
Its not working, since the report scripts contains lots of Predefined Variables.
Is there any other way to do it.
Hello,
before we're fishing in foul water, as Mark suggest, show your report-layout and script.
So someone will be able to find your problem.
I suggest, put the page-number from special field in the header of your report (as BIV standard) an see, if the pages are counted correctly.
Regards
Thomson S
11th April 2012, 06:51
Hi Guys, Thank you for supporting. I have done that in another way.
My requirement was to print an "Title" in every second page of the Item Report.. That report may contain many Item's details. In each item detail I need to print "Title" from its second page. So I made use of the lattr.pageno.
And the next requirement is to print Page Number in every page's Bottom right corner. Since the report is quit complicated I used more lattr.pageno. It affected the special field as you guys were saying.
Then I finally created a variable and assign it as "0" in header layout in the script and in the footer i incremented it by 1. Then I can print page number in all the pages.
Thank you for supporting guys. Sorry that I couldnt post the screenshot :(