Printing Header/Title Lines Only One Time on a report
John Esak
john at valar.com
Sat May 29 14:34:34 PDT 2010
Good idea... But there are some gatchs's... Not insurmountable, but
difficult. It's hard to determine the page number from within the data
section, and also it would be hard to close up the blank lines of other
lines in the data without closing these also... Assuming they are supposed
to close. Anyway, I remember futzing around with PFONEHeAD the moment it
came out... I thought it was going to be a panacea for this kind of thing,
but it eliminates the header completely, so you can't take advantage of the
automatic page numbering and that alone is a hassle.
I think no matter what he does, he is going to be messing around with @lc
and PAGE and also that little trick Nancy dreamed up of a negative number in
the number of forms per page was it? Something like that. It was pretty
cool, though. At least he could be assured of how to count when he should
be incrmenting the page number. Without that and with "close up unwanted
blank lines" @lc becomes almost useless.
John
<off topic completely>
Just as an aside, I used to actually print W-2's which used to come as
perforated forms 2 to a page... And I did it as a report.... Not a form.
This has absolutely nothing to do with what this thread is about...but I
just thought about it for some reason... And I'm old so I get to do stuff
like this... Anyway, it was so cool, because I got to print the STATE totals
as subtotals, and the FEDERAL totals as the Grand totals... And it all
always worked, even using the ='s totalling feature which was pretty much
all I knew how to do when this became necessary. Done as a form, it would
have been so much harder, even impossible for me way back then.
</off topic completely>
> -----Original Message-----
> From: filepro-list-bounces+john=valar.com at lists.celestial.com
> [mailto:filepro-list-bounces+john=valar.com at lists.celestial.co
m] On Behalf Of Bruce Easton
> Sent: Saturday, May 29, 2010 5:14 PM
> To: filepro-list at lists.celestial.com
> Subject: Re: Printing Header/Title Lines Only One Time on a report
>
> I've always used the techniques that John described. But I've been
> wondering if you could also employ the PFONEHEAD env. var at the same
> time - keeping your 32-line main heading as-is in the heading
> section,
> and putting your three-line header into dummies in the data
> section - so
> that filepro w/PFONEHEAD controls only your larger heading
> appearing on
> just the first page. I've never tried this combination, but maybe
> someone else has and can comment. Of course anytime you
> start using the
> data section for conditionally outputting all/part of heading, your
> processing should decide when to page-break and make a new
> heading vs.
> when to squish away and make the real 'data' lines.
>
> Bruce
>
> Bruce Easton
> STN, Inc.
>
>
>
>
> On 5/29/10 2:45 PM, John Esak wrote:
> > Hate to say it, but I've been doing exactly that
> foerever... Not just
> > putting all the header into variables (as well as data,
> subtotals and totlas
> > area), but also working for a living. :-)
> >
> > Unfortunately, that is the only way, but it gets easier and
> easier. The two
> > methods are to put each thing into a variable of its own, or put one
> > variable per line and construct the variables in processin.
> >
> >
> > ABC Company 10/23/10
> > 123 Street Page: 31
> > Report of Invoicews
> >
> > Date Inv# Client Amount
> > ----------------------------------------------
> > *d *I *c *a
> >
> >
> > Could be done either as:
> >
> > *aa *@td
> > *bb *pn
> > *cc
> >
> > *dd *ii *cu *am
> > ----------------------------------------------
> > *d *I *c *a
> >
> > Or sometimes it's easier to do:
> >
> > *a
> > *b
> > *c
> > *d
> > *e
> > *f
> > *d *i *c *a
> >
> >
> > And you just concatenate/build the variables for each line
> of the header
> > that you want. Even the line of dashes, and blank lines...
> Clear these
> > variables on the pages you don't want them... The above
> method leaves the
> > data line in separate variables. This is sometimes useful
> to make use of
> > the filePro =subtotal and =total feature. If you carry
> your own toatals in
> > the processing, you can make these single line variables as well.
> >
> > HINT: If you have certain lines n the data area that have to be lear
> > sometimes and filled at others, and you want those lines to
> remain blank...
> > If you use the close up blank lines function, they will
> close up when you
> > don't want them to because filePro will see them as empty.
> Just fill lines
> > you want to stay blank with a chr("13"). This will just be
> a carriage
> > return and do nothing but keep the line empty. FilePro
> wqill not close it up
> > because it thinks there is something there.
> >
> >
> >> -----Original Message-----
> >> From: filepro-list-bounces+john=valar.com at lists.celestial.com
> >> [mailto:filepro-list-bounces+john=valar.com at lists.celestial.co
> >>
> > m] On Behalf Of Scott Walker
> >
> >> Sent: Friday, May 28, 2010 11:55 PM
> >> To: filepro-list at lists.celestial.com
> >> Subject: Printing Header/Title Lines Only One Time on a report
> >>
> >> I have a report format.
> >>
> >>
> >>
> >> The heading/title lines section has about 32 lines. On the
> >> first page of
> >> the report I want to print all of them. On subsequent pages
> >> of the report I
> >> only want to print the first 3 lines of it.
> >>
> >>
> >>
> >> I know a heading this big does not make sense, but it's grown
> >> over the last
> >> 20 years to take so many lines. I would not have designed it
> >> this way it I
> >> was doing it from scratch.
> >>
> >>
> >>
> >> The only way I can think of to do this is to stuff everything
> >> into dummy
> >> variables for the first page, and only stuff a few things
> into dummy
> >> variables for subsequent pages. I'll have to put the field
> >> labels and the
> >> data into the dummy variables& I think this is going to be a
> >> real pain to
> >> get everything lined up. Then I'll tell fp to remove
> >> unwanted blank lines.
> >>
> >>
> >>
> >> Is there an easier way or do I actually have to work for a living?
> >>
> >>
> >>
> >> Regards,
> >>
> >>
> >>
> >> Scott
> >>
> >>
> >>
> >>
> >>
> >> Scott Walker
> >>
> >> RAM Systems Corp
> >>
> >> (704) 896-6549
> >>
> >> ScottWalker at RAMSystemsCorp.com
> >>
> >>
> >>
> >
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
More information about the Filepro-list
mailing list