473,388 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Browser Printing Configuration in JS

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

Oct 24 '07 #1
3 2136
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Kurda Yon | last post by:
Sorry for the stupid question. I created *.html file with the following contents. <html> <head> <title>Example</title> </head> <body> <?php echo "Hi, I'm a PHP script!";
1
by: Raymond Cheung | last post by:
How do I disable to show xml file content on web browser from across domain. I know we can have some sort of enbcription on the xml file content. I also know that we can use authentication to...
0
by: DotNetDummy | last post by:
Hi all, I am trying to set the printing setting e.g duplex mode etc. on a default printer when I.E object started printing a particular html doc. Here's the partial code, any help would be...
12
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical...
0
by: Nigel | last post by:
I successfully create a .NET Component (Visual Basic .NET) that would print, unfortunately when used within a web browser it appears that .NET security doesn't allow you to run code that interacts...
4
by: Paul W | last post by:
Hi - can someone point me to info on the issues/resolutions of supporting the safari browser? To help me understand, if I was developing pages in say FrontPage, what attributes would I set for...
6
by: randy1200 | last post by:
I'm using Visual Studio 2005 and C#. I need to print a WinForm used for data entry as a graphic. In other words, I need to print the exact WinForm the user sees on the screen. I searched through...
0
by: le0 | last post by:
hi guys can you help me with this, this is my first time to published a website to another server and access it using my browser but this runtime error always appears. Server Error in...
12
by: =?Utf-8?B?QWxpIFNoYWh6YWQ=?= | last post by:
Hi, asp.net 2.0, ie6, opera 9.22 For various supportability reasons, we need to redirect a page to a url and require that the target url should open in an Opera browser. The call is simple ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.