Printing from a web page.

  • Thread starter Thread starter Mufasa
  • Start date Start date
M

Mufasa

I have a page where somebody enters some information. On submitting the
page, I want to take the info, format it 'pretty' and print the page
automatically for the user.

Can anybody point me somewhere to look on how to do this?

Thanks - Jeff.
 
With that - here's another question -

If I have a web page that somebody is going to print, how can I put page
breaks in it to force the print to eject the page?

I don't even know if I can embed a ^L on the page.
 
You can invoke hte printer dialogue with a single line fo javascript

<a href="JavaScript:window.print();">Print this page</a>

But to format the page correctly, you should read up on CSS print

http://www.tufts.edu/webcentral/tutorials/printcss/

Regards

John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog









- Show quoted text -

you may want to try <DIV style="page-break-after:always"></DIV> as a
page break...


... more at http://www.siccolo.com/articles.asp ...
 
Back
Top