I got this code from something I found on a google search, but I've used it on other clients' projects successfully: This will work in IE4 and higher: <HTML> <BODY> page one text <P style="page-break-before: always"> page two text <P style="page-break-before: always"> page 3 text </body> </html> You also have the option of using page-break-after in the same manner. Three things: 1) Not sure what the equivalent would be in NN or any other browser. 2) You'd probably want to work this into a CSS style. 3) As always, this is a rather "dumb" feature in that it does not recognize page height or anything. It pretty much requires that you put the page breaks in manually where you think they should fall. In a large document/report, sometimes that can get a little hairy. Here's what the W3C has to say: http://www.w3.org/TR/REC-CSS2/page.html Here's what M$ has to say: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref erence/properties/pagebreakbefore.asp Hope this helps. Rich > -----Original Message----- > From: Jason S Motes [mailto:jmotes@luhcares.org] > Sent: Wednesday, April 02, 2003 11:16 AM > To: php-db@lists.php.net > Subject: Re: sending a form feed to a printer > > > form feeds don't work in html. It is interpreted as a space. > > Arthur Chevalier wrote: > > Hello, > > > > I am having problems getting the \f (form feed) expression > to work. After a > > certain amount of lines print I want to start printing the > next line on a > > new sheet of paper. Any ideas of what I could be doing > wrong. Below is a > > sample piece of my code. The bold code is where I am > trying to issue the > > form feed. > > > > while($row = mysql_fetch_array($dbResult)) > > { > > print("<TR>\n"); > > print("<TD class=\"tdborder\"><A > > HREF=\"show_single_server.php?server_name=$row[0]\" > TARGET=\"text_float\">" > > . $row[0] . "</TD>\n"); > > print("<TD class=\"tdborder\">". $row[1] . "</TD>\n"); > > print("<TD class=\"tdborder\">". $row[2] . "</TD>\n"); > > print("<TD class=\"tdborder\"><A > > HREF=\"$PHP_SELF?mid_tier=$row[3]&db_rel=0\" > TARGET=\"text_float\">". > > $row[3] . "</TD>\n"); > > print("<TD class=\"tdborder\"><A > > HREF=\"$PHP_SELF?db_rel=$row[4]&mid_tier=0\" > TARGET=\"text_float\">". > > $row[4] . "</TD>\n"); > > > > $rowdata = $row[5]; > > if($rowdata == "") > > { > > print("<TD class=\"tdborder\"> </TD>\n"); > > } > > else > > { > > print("<TD class=\"tdborder\">". $row[5] . "</TD>\n"); > > } > > print("<TD class=\"tdborder\">". $row[6] . "</TD>\n"); > > //print("</TR>\n"); > > > > if($counter == "20") > > { > > $counter = "0"; > > print("</TR>\f"); > > continue; > > } > > else > > { > > $counter ++; > > print("</TR>"); > > continue; > > } > > > > } > > > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php