count pages
Kenneth Brody
kenbrody at bestweb.net
Thu Jul 10 08:36:49 PDT 2008
Quoting Richard Kreiss (Thu, 10 Jul 2008 10:31:18 -0400):
> 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?
My guess:
You have 4 instances where exactly one record was printed on the last
page of a multi-page subtotal break.
Possible fix:
Add the same @pn check in @wbrk1 as well.
@wbrk1
If: page_num ne @pn
Then: page_count=page_count+"1"
If:
Then: reset @pn;page_num="";end
--
Read the truth behind the movie "Expelled" at <http://www.ExpelledExposed.com>
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list