print web page

G

Guest

I am doing a web project.
Is there any method to print web pages with support of page breaks and
without printer prompt diaglog e.g.like window.print() (or close immediately)
by just clicking a button on the webpage?

Thank you very much.
 
L

Leon Mayne [MVP]

yfng said:
I am doing a web project.
Is there any method to print web pages with support of page breaks and
without printer prompt diaglog e.g.like window.print() (or close
immediately) by just clicking a button on the webpage?

Hello,
You can make page breaks by using the CSS attribute(s):
page-break-after
page-break-before or
page-break-inside

e.g.
http://www.corecss.com/examples/18-04-page-break-after.html

To print the page without prompting, see here:
http://www.faqts.com/knowledge_base/view.phtml/aid/9169
Which seems to work, but I suspect only in IE.
 
M

maryann_f29

hi. i have the same query. Also is there a way of printing only a part of the webpage? i mean, like a printable version of the document. I dont mind the print dialog.

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
M

maryann_f29

hi. i have the same query. Also is there a way of printing only a part of the webpage? i mean, like a printable version of the document. I dont mind the print dialog. Thanks in advance.

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 

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

Top