Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New page in explorer for printing, any solutions?

Status
Not open for further replies.

SFiend

Programmer
Jun 4, 2004
39
CZ
Hi,

Is there an order that says to the printer to start printing on a new page?

eg.

I want to print just a half of the text on page #1 and then use the order to print the rest of the text on the page #2.

In C++ it is \f

Thank you.
 
Is there an order that says to the printer to start printing on a new page?

Do you mean to print to a printer? As far as I know, you can't print to a printer with PHP, because it is server side.

Do you mean "print" as in using the print statement, like:

print "Here is the text";

Peace out,
Peace Co.
 
Hi,

What you're asking should be asked in the HTML/CSS forum §;O)

Having said that, here's what you need:

Consider the two CSS properties, [tt]page-break-after[/tt] and [tt]page-break-before[/tt].

This example will force a page break after the paragraph:

Code:
...
<P STYLE="page-break-after:always;">This is page one</P>

<P STYLE="page-break-after:always;">This is page two</P>
...

If you need more help on this, try this forum instead: forum215

Good Luck §;O)


Jakob
 
Yes, that's what I need.

Thank you very much ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top