| | |
print web page
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
But you have got to realize that the window.print() method provides little or no control over the printing settings. Its just a nicety and is equivalent to pressing Ctrl + P.
Even the documentation doesn't provide any significant information about this function. It actually makes sense since its the user who decides what and how things have to printed and not the site developer. Messing around a bit with your printer settings is the only way to go.
Even the documentation doesn't provide any significant information about this function. It actually makes sense since its the user who decides what and how things have to printed and not the site developer. Messing around a bit with your printer settings is the only way to go.
I don't accept change; I don't deserve to live.
•
•
Join Date: Jul 2007
Posts: 5
Reputation:
Solved Threads: 0
I've developed an intranet application where the user click on button
PRINT INVOICE
I create the invoice into an html page and open it with minimun size, print and then close it.
ex.:
<head>
<body on load='window.print();window.close()'>
......invoice's tags.....
</body>
>/head>
I've found something about print job into CSS2 Specification arround PAGED MEDIA groups but nothing to control head and footer of printed document.
PRINT INVOICE
I create the invoice into an html page and open it with minimun size, print and then close it.
ex.:
<head>
<body on load='window.print();window.close()'>
......invoice's tags.....
</body>
>/head>
I've found something about print job into CSS2 Specification arround PAGED MEDIA groups but nothing to control head and footer of printed document.
This is a function of the particular printer's driver and the PAGE SETUP function in the browser the USER of the page is using.
It belongs to the owner of that user's computer, not to the web page designer.
It is a security violation for a web page to be able to alter those settings. You have no right to change it.
It belongs to the owner of that user's computer, not to the web page designer.
It is a security violation for a web page to be able to alter those settings. You have no right to change it.
Daylight-saving time uses more gasoline
![]() |
Similar Threads
- Print a web page in ASP.net (ASP.NET)
- PDF web page? (HTML and CSS)
- Bringing a minimized mozilla web page to the foreground (Existing Scripts)
- Print web page content. (ASP.NET)
- how can i use php to print a specified part of a web page? (PHP)
- No page header and footer when printing a web page (JavaScript / DHTML / AJAX)
- Printing Web Page (Windows 95 / 98 / Me)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: undefined..
- Next Thread: Smart chained select boxes
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug calendar captchaformproblem checkbox child close column createrange() css cursor decimal dependent design disablefirebug dom download dropdown editor element embed engine error events explorer ext file form forms google gwt gxt hiddenvalue highlightedword hint html htmlform ie8 iframe images index internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jump libcurl listbox math media microsoft mimic mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php player post problem progressbar regex runtime scroll search security select shopping size software sql text textarea unicode w3c web website window windowofwords windowsxp wysiwyg \n






