rj1234
23rd October 2004, 07:05
I wanted to know if there is an option wherein we can get the count of page nos in Baan so that on each page we can print Page no 1 of (count of page no).Even if it is device and paper type dependant is there any variable that has its value.


Rekha J
Baan IV Tools consultant

NPRao
23rd October 2004, 09:25
Rekha,

Refer to the threads -

Page x of y: Jo Büche's solution (http://www.baanboard.com/baanboard/showthread.php?t=6190&highlight=pages)

Page x of y: Kevin Brock's solution (http://www.baanboard.com/baanboard/showthread.php?t=1079&highlight=pages)

suhas-mahajan
25th October 2004, 09:16
Rekha,

Also refer to - http://www.baanboard.com/baanboard/showthread.php?t=12611&highlight=page

Regards,

-Suhas

KaasKarthik
22nd September 2020, 13:37
hello all,i want to calculate the total page no ,i calculate using no of record divided by page.length of report ,i am getting output,for make it is effective
1) i need to consider the printer device information,
2)how to get header and footer length through script
3)page calculation with mixing of new page and without new page
:confused::confused:

mark_h
22nd September 2020, 14:06
If you can avoid doing this. I had one report that I did this on(print po's) - after about 5 years of constantly adjusting it, I pretty much stopped supporting it. Read the above solutions and they will show you what they do and how they get the report variables.

bdittmar
22nd September 2020, 14:56
hello all,i want to calculate the total page no ,i calculate using no of record divided by page.length of report ,i am getting output,for make it is effective
1) i need to consider the printer device information,
2)how to get header and footer length through script
3)page calculation with mixing of new page and without new page
:confused::confused:

Hello,
use HiDox and this problem is gone.

Regards

KaasKarthik
22nd September 2020, 17:50
@mark_h
Hello sir,how i pre calculate the headers length sir,(if i use more than 1 headers)how do i calculate length of header for calculating total page.
please give reply as quick as possible sir,very very urgent.

mark_h
23rd September 2020, 00:01
Well the one report we did the headers were static. So we just initialized a value for example header.1.rows = 10, header.2.rows = 6. If your report is pretty static like 1 row for header, 1 row for detail. Then you can just add them up and divide by the page length. Ours was more complicated since we printed text in PO's.

I would recommend looking at Hidox if possible.

avpatil
28th September 2020, 18:22
The dirty way would be to run the report twice.

KaasKarthik
29th September 2020, 06:43
Thank you guru,it works fine