HTML output help

Raymond Scheel raym0nds at yahoo.com
Fri Mar 2 13:57:39 PST 2007


> ------------------------------
> Date: Fri, 2 Mar 2007 09:40:09 -0800 (PST)
> From: Richard Hane <yoresoft at sbcglobal.net
>
> I have just started re-creating our company's outputs to be
> html
> (via filepro). Instead of designing a new report format for
> each output I
> have created a general holding detail file that uses 80
> character flds which
> are uniquely filled by processing in the respective
> "feeder" files. No
> problem with this.
> 
> However an item that I need some help on is how to produce
> the web
> output so pages come out correctly and have the header
> print properly. My
> question is how are others determining end of page (ie. 60
> lines) for
> printing? Are you using line count? Does anyone have a
> sample processing
> snipet they can post?
> 
> Thank you in advance for any guidence,
> Rick Hane
> Controller, DeLuxe Stitcher Company
> 

Rick:

Just in case you might be over-complicating what you need to
do, what I have done to make a lot of our existing reports 
web-viewable (those without font scaling) is to set both
lines per page and lines printed to 60 and then used a bit of
PHP to call the report and wrap the output with PRE tags
along with the respective header and closing tags.  It comes
out looking just like a printed report on screen without the
between page whitespace, but when printed on a standard laser
the page breaks fall in the right spot for repeated headers. 
No fuss, no muss, just done.  

This does not work if trying to make a "prettier" HTML
output, but I've found most of my users still prefer the
classic filePro report look on the reports they are printing
that take more than a page without "logical" places to insert
the pagebreak coding. 

I do have a couple of reports that put the printing page
breaks at @wbrk (or equivalent) processing to separate groups
by page when in an HTML table, that code is trivial when it
is convenient. I wrap a variant of the following in angle
brackets in my output string:
br/ style="page-break-after:always;"


Ray


Ray Scheel                    936-291-5206
Programmer            ray.scheel at wsdtx.org
Windham School District   http://wsdtx.org


Ray Scheel             http://ScheelMedia.com
Phone: 936-662-5465        61 Whispering Pine
Fax: 928-438-7608   Huntsville, TX 77320-1663


 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL


More information about the Filepro-list mailing list