selective form printing

Bruce Easton bruce at stn.com
Fri Nov 17 10:35:30 PST 2006


> -----Original Message-----
> From: filepro-list-bounces+bruce=stn.com at lists.celestial.com
> [mailto:filepro-list-bounces+bruce=stn.com at lists.celestial.com]On Behalf
> Of GCC Consulting
> Sent: Friday, November 17, 2006 1:11 PM
> To: 'Daniel Bauer'; filepro-list at lists.celestial.com
> Subject: RE: selective form printing
>
>
> > -----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
>
I was looking for an example that we had done.  We had one somewhere that
looks like the one like Richard mentions here in his second method, where
you could do inside clerk something like:

        lookup ffff . .(file that has one rec for each form)
 loop   not ffff
        goto fend
        .
        .
        if single
        formm "single"
        if double
        formm "double"
        getnext ffff; goto loop
fend    form ""
        end     'i forget if you can actually do just form without valid
forname, but if not you could maybe have a statistics footer form or
something at the end.

my point here is that Richard's extra m at the end of the form command is
not a typo, but another command that I think keeps the spooler open.

Bruce

Bruce Easton
STN, Inc.



More information about the Filepro-list mailing list