Page number when printing multiple copies
Hi,
I need to print multiple copies of same report and the report should have text in 'Page [PageNo] of [TotalPages]' format.
Printing multiple copies is not an issue (which can be done by below code
I am struggling with getting text 'Page X of Y'. I have tried variables like Page#, TotalPages#, PageNofM but all those values are always 1. I have also tried incrementing a variable in 'BeforePrint' event, but to no avail.
Is there any way to get text in desired format?
Thanks,
Yash
I need to print multiple copies of same report and the report should have text in 'Page [PageNo] of [TotalPages]' format.
Printing multiple copies is not an issue (which can be done by below code
report.PrintSettings.Copies = 2;
).I am struggling with getting text 'Page X of Y'. I have tried variables like Page#, TotalPages#, PageNofM but all those values are always 1. I have also tried incrementing a variable in 'BeforePrint' event, but to no avail.
Is there any way to get text in desired format?
Thanks,
Yash
Comments
I theory is the first pass can count the totals and the second pass can render.
HTH - Mike
Thanks Mike.
Do you mean setting 'Double Pass'? If so, this did not help either.
I did mean "Double Pass" but now as I re-read your question I think you want CopyName#
see
http://www.fast-report.com/en/forum/?p=/discussion/9656
HTH
Mike