By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,654 Members | 1,583 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,654 IT Pros & Developers. It's quick & easy.

Browser Printing Configuration in JS

P: n/a
Hello, is there a way to access (hopefully also set) the brower
printing configuration in JavaScript?
TIA

Oct 24 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Ernesto <er************@gmail.comwrote in news:1193240204.648608.300500
@v29g2000prd.googlegroups.com:
Hello, is there a way to access (hopefully also set) the brower
printing configuration in JavaScript?
TIA
nope, and if you're hoping to control printed output from the browser in
any way other than PDF, save yourself the time and stop now.

Oct 24 '07 #2

P: n/a
On Oct 24, 8:36 am, Ernesto <ernesto.tej...@gmail.comwrote:
Hello, is there a way to access (hopefully also set) the brower
printing configuration in JavaScript?
TIA
Do take a look though at CSS media="print" to control page layout,
margins, and settings for what goes on the printed page. Still can't
control the browser's print setup, though.

-David

Oct 24 '07 #3

P: n/a
David Golightly wrote:
On Oct 24, 8:36 am, Ernesto <ernesto.tej...@gmail.comwrote:
>Hello, is there a way to access (hopefully also set) the brower
printing configuration in JavaScript?
TIA

Do take a look though at CSS media="print" [...]
That would be

@media print {
/* ... */
}

in CSS. The code you posted is an HTML attribute instead that can be used
as follows:

<link rel="stylesheet" type="text/css" href="..." media="print">
See <http://www.w3.org/TR/CSS21/media.html#media-sheets>
and <http://w3development.de/css/hide_css_from_browsers/media/>.
F'up2 comp.infosystems.www.authoring.stylesheets

PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Oct 25 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.