well, not sure how this might work with different browsers and printers but
you could do some measurements and see how much space a header takes up, and
how much space each row in the table takes up to get some kind of function.

if you had 1.5 inches of "header" text/spacing for the table (ie not part of
the table itself) and each row in the table was .5 inches itd be:

TableSize=1.5+numrows*0.5

Then you could do a for loop w/ some math, keeping track of how much page
you have left, seeing if you have enough room to print the next table on the
page, or if you have to do a pagebreak first.  Youd have to put in special
code though in case a table was too long to fit on one page, or else you
could end up in an infinite loop.


----- Original Message -----
From: "Dan Stein" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 12:41 PM
Subject: Re: Witango-Talk: [OT] JS or CSS Orphan no printing


> The table won't be too long to fit on one page. I don't want a different
> page for each course. Most times I can fit 4 or 5 courses on a page but
what
> I would like is if the last course does not fit it moves to the next page
> starts printing that course from there.
>
> Dan
> --
> Dan Stein
> Digital Software Solutions
> 799 Evergreen Circle
> Telford PA 18969
> Land: 215-799-0192
> Mobile: 610-256-2843
> Fax 413-410-9682
> FMP, WiTango, EDI,SQL 2000
> [EMAIL PROTECTED]
> www.dss-db.com
>
>
> > From: "Wilcox, Jamileh" <[EMAIL PROTECTED]>
> > Reply-To: [EMAIL PROTECTED]
> > Date: Wed, 12 Mar 2003 14:36:42 -0600
> > To: <[EMAIL PROTECTED]>
> > Subject: RE: Witango-Talk: [OT] JS or CSS Orphan no printing
> >
> >> From that, it looks like you should use
> >
> > <TABLE STYLE="page-break-inside:avoid;">
> >
> > and it should do what you want.  You might combine it with Scott's
> > suggestion to start each table on a new page:
> >
> > <TABLE STYLE="page-break-before:always;page-break-inside:avoid;">.
> >
> >
> > It looks like there are still some situations where a table may break
> > across pages, though.
> >
> > What do you expect it to do when a table is too long to fit on one page?
> >
> > j
> >
> >
> >> -----Original Message-----
> >> From: Dan Stein [mailto:[EMAIL PROTECTED]
> >> Sent: Wednesday, March 12, 2003 2:16 PM
> >> To: [EMAIL PROTECTED]
> >> Subject: Re: Witango-Talk: [OT] JS or CSS Orphan no printing
> >>
> >>
> >> This looks like what I need. But I don't think I really
> >> understand it. ( so much to learn so little time)
> >> <http://www.w3.org/TR/REC-CSS2/page.html#break-inside>
> >> --
> >> Dan Stein
> >> Digital Software Solutions
> >> 799 Evergreen Circle
> >> Telford PA 18969
> >> Land: 215-799-0192
> >> Mobile: 610-256-2843
> >> Fax 413-410-9682
> >> FMP, WiTango, EDI,SQL 2000
> >> [EMAIL PROTECTED]
> >> www.dss-db.com
> >>
> >>
> >>> From: "Atrix Wolfe" <[EMAIL PROTECTED]>
> >>> Reply-To: [EMAIL PROTECTED]
> >>> Date: Wed, 12 Mar 2003 12:12:20 -0800
> >>> To: <[EMAIL PROTECTED]>
> >>> Subject: Re: Witango-Talk: [OT] JS or CSS Orphan no printing
> >>>
> >>> ah actualy it wasnt <th> that did this, it was using thead.
> >>  Check out
> >>> this
> >>> link:
> >>> http://www.designf1.webcentral.com.au/tutorials/table004.html
> >>>
> >>> when it has to do a page break, it will reprint the <thead> section.
> >>>
> >>>
> >>>
> >>> ----- Original Message -----
> >>> From: "Atrix Wolfe" <[EMAIL PROTECTED]>
> >>> To: <[EMAIL PROTECTED]>
> >>> Sent: Wednesday, March 12, 2003 12:07 PM
> >>> Subject: Re: Witango-Talk: [OT] JS or CSS Orphan no printing
> >>>
> >>>
> >>>> i read somewhere that if you use <th></th> (Table Header), that it
> >>>> will do this very thing.  You use <th> like you use <td>:
> >>>>
> >>>> <table border=1>
> >>>> <tr>
> >>>> <th>Odd</th>
> >>>> <th>Even</th>
> >>>> </tr>
> >>>> <tr>
> >>>> <td>1</td>
> >>>> <td>2</td>
> >>>> </tr>
> >>>> <tr>
> >>>> <td>3</td>
> >>>> <td>4</td>
> >>>> </tr>
> >>>> <td>
> >>>>
> >>>> Just cause i read it doesnt mean it works, i sure hope it does
> >>>> though.  I dont have a printer so cant test, sorry.
> >>>>
> >>>> ----- Original Message -----
> >>>> From: "Dan Stein" <[EMAIL PROTECTED]>
> >>>> To: <[EMAIL PROTECTED]>
> >>>> Sent: Wednesday, March 12, 2003 11:39 AM
> >>>> Subject: Witango-Talk: [OT] JS or CSS Orphan no printing
> >>>>
> >>>>
> >>>>> I want to be able to print a list of courses but want the
> >> pages not
> >>>>> to
> >>>> break
> >>>>> across a table.
> >>>>>
> >>>>> It looks like with CSS2 their should be some way to deal
> >> with this
> >>>>> but I can't figure it out.
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Dan Stein
> >>>>> Digital Software Solutions
> >>>>> 799 Evergreen Circle
> >>>>> Telford PA 18969
> >>>>> Land: 215-799-0192
> >>>>> Mobile: 610-256-2843
> >>>>> Fax 413-410-9682
> >>>>> FMP, WiTango, EDI,SQL 2000
> >>>>> [EMAIL PROTECTED]
> >>>>> www.dss-db.com
> >>>>>
> >>>>>
> >>>>>
> >> ____________________________________________________________________
> >>>>> ____
> >>>>> TO UNSUBSCRIBE: send a plain text/US ASCII email to
> >> [EMAIL PROTECTED]
> >>>>>                 with unsubscribe witango-talk in the message body
> >>>>>
> >>>>
> >>>>
> >> _____________________________________________________________________
> >>>> ___
> >>>> TO UNSUBSCRIBE: send a plain text/US ASCII email to
> >> [EMAIL PROTECTED]
> >>>>                 with unsubscribe witango-talk in the message body
> >>>
> >>>
> >> ______________________________________________________________________
> >>> __
> >>> TO UNSUBSCRIBE: send a plain text/US ASCII email to
> >> [EMAIL PROTECTED]
> >>>               with unsubscribe witango-talk in the message body
> >>>
> >>
> >> ______________________________________________________________
> >> __________
> >> TO UNSUBSCRIBE: send a plain text/US ASCII email to
> >> [EMAIL PROTECTED]
> >>                 with unsubscribe witango-talk in the message body
> >>
> >
> > ________________________________________________________________________
> > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
> >               with unsubscribe witango-talk in the message body
> >
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to