Page x of y

George Simon flowersoft at compuserve.com
Wed Oct 12 23:16:03 PDT 2005


----- Original Message ----- 
From: "Brian K. White" <brian at aljex.com>
To: "filePro mailing list" <filepro-list at seaslug.org>
Sent: Wednesday, October 12, 2005 10:21 PM
Subject: Re: Page x of y


>
>
> ----- Original Message ----- 
> From: "Gary Olman" <garyolman1 at hvc.rr.com>
> To: "'Filepro-List'" <filepro-list at seaslug.org>
> Sent: Wednesday, October 12, 2005 9:14 PM
> Subject: Page x of y
>
>
>> The most annoying problem I have is getting "page x of y pages" working 
>> on a
>> filepro report . Filepro 5.0.14 windows XP. Every  thought I have works 
>> 90%.
>> Does some one have a way of making this work 100% of the time? Thanks
>> Gary
>
> Only possible way can be post-processing.
> You don't know the total until you are all done. You have to print to a 
> file and then examine the file, or pipe to a program that does the same 
> thing.
> The simplest way would be to have fp put the running page numbers and a 
> special code one each page, and then at the end of the report you know the 
> total page count, hand that value to the post processor somehow. The post 
> processor then knows the total page count before it gets the frst page and 
> can replace the special code with the total on it's way to the print 
> spooler.
>
> like, put this on your formats:
>
> Page *@pn of %PT%
>
> I don't know how you could do it really conveniently like putting a post 
> processor program in a print destination so that it "just works" on any 
> report or form.
> Even if you had the report process write a temp file in @done that the 
> post process knows how to find, the print destination command gets started 
> as soon as the report starts, not after the report is all done. Maybe you 
> have to print to file, and edit the file yourself in @done, then feed the 
> file to the spooler. (which means you have to put a spooler command right 
> in processing and can't use the print destination in fp he normal way)
>
> On unix I'd make a printer interface that collects the data ito a file, 
> reads the total page count from the special code on the last page, then 
> passes the collected data through sed to the spooler. That way there is 
> nothing funny you need to do in filepro other than put the code on the 
> output where you want the total to show up. The print destination command 
> doesn't need to be passed any values, you don't need anything special in 
> @done. This would not be able to handle print data that had binary images 
> and soft fonts etc in it.
>
> On winows, maybe print wizard can do it.
>
> Brian K. White  --  brian at aljex.com  --  http://www.aljex.com/bkw/
> +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
> filePro  BBx    Linux  SCO  FreeBSD    #callahans  Satriani  Filk!
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>

I think it was for cases like this that the Gods created the 'reset' 
command. 




More information about the Filepro-list mailing list