Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Tables and Page Breaks

Reply
Thread Tools

Tables and Page Breaks

 
 
scorpion53061
Guest
Posts: n/a
 
      09-01-2003
Hi I am actually a vb.net windows developer using code to write a web page.
I have a loop that writes rows to the web page. What I would like to do is:

1. Every five tables force a page break

OR

2. If a table is broken between pages it should force a pagebreak to make
the table appear on the next page.

Can this be done in HTML? thank you for any help.........

A sample of how it is looking in my project....drs is a variable for row ,
Dshistory1.Tables is the table of data to be written, i is the integer
indicating what row you are on, sw is the data.

For Each drs In Dshistory1.Tables(0).Rows

i = i + 1

sw.WriteLine("<html>")

sw.WriteLine("<body>")

sw.WriteLine("<table border=3 cellspacing=1 width=100% id=AutoNumber1>")

sw.WriteLine("<tr>")

sw.WriteLine("<td width=33% align=center><b>CUSTNO</b></td>")

sw.WriteLine("<td width=33% align=center><b>CUSTNAME</b></td>")

sw.WriteLine("<td width=34% align=center><b>SLSMNO</b></td>")

sw.WriteLine("</tr>")

sw.WriteLine("<tr>")

sw.WriteLine("<td width=33% align=center>" &
Dshistory1.Tables(0).Rows(i).Item("CUSTNO") & "</td>")

sw.WriteLine("<td width=33% align=center>" &
Dshistory1.Tables(0).Rows(i).Item("CUSTNAME") & "</td>")

sw.WriteLine("<td width=34% align=center>" &
Dshistory1.Tables(0).Rows(i).Item("SLSMN") & "</td>")

sw.WriteLine("</tr>")

sw.WriteLine("</table>")

sw.WriteLine("</center>")

sw.WriteLine("</div>")

Next

sw.WriteLine("</body>")

sw.WriteLine("</html>")

sw.Close()


 
Reply With Quote
 
 
 
 
Matthias Gutfeldt
Guest
Posts: n/a
 
      09-01-2003
scorpion53061 wrote:
> Hi I am actually a vb.net windows developer using code to write a web page.
> I have a loop that writes rows to the web page. What I would like to do is:
>
> 1. Every five tables force a page break
>
> OR
>
> 2. If a table is broken between pages it should force a pagebreak to make
> the table appear on the next page.


My screen doesn't have any pages!


Fun aside, you could experiment with the properties for paged media:
<http://www.w3.org/TR/CSS2/page.html>. Browser support for these
properties varies wildly, of course.


Matthias

 
Reply With Quote
 
 
 
 
scorpion53061
Guest
Posts: n/a
 
      09-01-2003
LOL touche' you are correct sir.......

I guess what I am saying is when the user goes to print the page perhaps
there is a script or style sheet you could help me with (or perhaps plain
old HTML) that could make it print in such a way that tables are not broken
in printing or only prints a number of tables per page.


"Matthias Gutfeldt" <(E-Mail Removed)> wrote in message
news:bivjc9$dct8o$(E-Mail Removed)-berlin.de...
> scorpion53061 wrote:
> > Hi I am actually a vb.net windows developer using code to write a web

page.
> > I have a loop that writes rows to the web page. What I would like to do

is:
> >
> > 1. Every five tables force a page break
> >
> > OR
> >
> > 2. If a table is broken between pages it should force a pagebreak to

make
> > the table appear on the next page.

>
> My screen doesn't have any pages!
>
>
> Fun aside, you could experiment with the properties for paged media:
> <http://www.w3.org/TR/CSS2/page.html>. Browser support for these
> properties varies wildly, of course.
>
>
> Matthias
>



 
Reply With Quote
 
Toby A Inkster
Guest
Posts: n/a
 
      09-01-2003
scorpion53061 wrote:

> Hi I am actually a vb.net windows developer using code to write a web page.


See alt.html.tags.

--
Toby A Inkster BSc (Hons) ARCS | (E-Mail Removed) | pgp:0x6A2A7D39
aim:inka80 | icq:6622880 | yahoo:tobyink | jabber:(E-Mail Removed)
http://www.goddamn.co.uk/tobyink/ | "You've got spam!"
playing://(nothing)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Managing Page Breaks in an ASP Page Orion Forever ASP General 2 05-01-2009 05:13 PM
How to get database metadata information (i.e. existing tables and columns in tables) Chris Brat Python 5 08-22-2006 05:25 PM
XSL-FO Page Breaks in Nested Tables Joseph Ferris XML 1 04-06-2005 07:44 PM
Page Number and Page Breaks AV ASP General 4 10-28-2003 04:34 PM
[XSL] Problem with tables and page breaks : how to insert a summary ? Mathieu CARTOIXA XML 0 07-17-2003 09:56 AM



Advertisments