Page numbers x of y

Hello There, I would like to know how to display page numbers i.e if the report consits of 5 pages, I would like navision to show me the page number as 1 of 5, 2 0f 5 & etc. If possible, can some one explain to me in detail on writing or adding code. Regards

Hi! Regarding “Page X of Y”: Navision Reports know X and not Y. X is produced by CurrReport.PageNo Should you want to use Y: you need to include a calculation in your report. You should define a formula based of the no. of records that will be printed. The result of this calculation goes into a self-defined Global, so that your report knows Y. Kind regards

Hans is absolutely right (Hi, Hans!). Wajahatullah, did you search the forum before asking your question. You are not the first person with this problem, you know. :wink:

Hi, I have searched the forum as well & noticed its not explained in a right way. Hope if you can drop a detailed line, it would be much a help for me

quote:


Originally posted by hansfousert
… You should define a formula based of the no. of records that will be printed. The result of this calculation goes into a self-defined Global, so that your report knows Y.


The formula should include the paper size AND orientation as well…

Search for “number of pages”.

HI place a text box on the section where u want to print the page number and make the source expression property of the text box to CurrReport.PageNo Hari

Even knowing page sizes and orientation is just not enough. The only way, is to create the report so that it runs twice, and the first time is just to calculate the number of pages. My fear is that soon we will get this “feature”. Remember the days when newbies always asked “where are the scroll bars?” well now we have them … and guess what? They are terrible.