selective form printing

GCC Consulting gccconsulting at comcast.net
Fri Nov 17 10:11:22 PST 2006


 

> -----Original Message-----
> From: 
> filepro-list-bounces+gccconsulting=comcast.net at lists.celestial
> .com 
> [mailto:filepro-list-bounces+gccconsulting=comcast.net at lists.c
> elestial.com] On Behalf Of Daniel Bauer
> Sent: Thursday, November 16, 2006 1:58 PM
> To: filepro-list at lists.celestial.com
> Subject: selective form printing
> 
> I'm sure someone has done this before but I haven't come up 
> with the solution yet or found it in the archive. So I'm 
> thanking you in advance for your assistance.
> 
> Basically I want to printing a run of forms, the catch is 
> some records will have two forms and other records will only 
> have one form.  
> Consider it a letter with 1 or 2 pages. I can print the forms 
> separately but I'd rather they be collated and that's the problem.
> 
> I'm using filePro V5 and SCO:Unix
> 
> Thanks again
> 
> Dan
> dan at onlinemgt.com

Consider creating a process output using a -v select process and the create
a process that checks for either on or 2 pages.

Use a system command and create the proper command line to select that
record and print the first form and if a second page is needed printed the
second form else end the processing.

ie
If:
Then: System "/fp/rreport foobar -f form1 -u -sr"<@rn
If: foobar(xx) = Your value
Then: System "/fp/rreport foobar -f form2 -u -sr"<@rn
END

Make sure that you place -u option on the command line starting this output
so the record you want to print is not locked.


Another method would be to use a library function from a standing file and
clerk.  In input processing enter the criteria for getting a record.  Do a
lookup to the file and read in the necessary data.  Use the forms in your
library file which have the necessary dummy fields.

Then if you need 2 pages use formm page1;form page2;end

Or if only one page then form page1; 

Richard Kreiss
GCC Consulting
 





More information about the Filepro-list mailing list