count pages

Richard Kreiss rkreiss at gccconsulting.net
Thu Jul 10 07:31:18 PDT 2008


I am running a report which breaks, doing a form feed, on a code.  At the break the page # is reset using reset @pn.

My problem is that I want to print the actual total # of pages generated at @wgt.

The code is:
10  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
       ◄ If: page_num ne @pn
       Then: page_num = @pn;page_count=page_count+"1"

@wbrk1
If:
Then: reset @pn;page_num="";end

The declared values are global (3,.0,g)

Many of the codes have only 1 page on information printed.

The report selection I am using, for testing, generates a report of 37 pages with the total page.

However, page_count, when printed, is 33 not 37.

Any suggestion as to why I am not getting the proper page count?


Richard Kreiss
GCC Consulting
rkreiss at gccconsulting.net
  







More information about the Filepro-list mailing list