Printing from a web page.

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.
 
M

Mufasa

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.
 
S

siccolo

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 ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top