Solved

Window.Print using Javascript for disabling Print to file option

Posted on 2007-03-20
2
1,761 Views
Last Modified: 2012-05-05
Want to disable "Print to file check box" appears in Print dialog box while using window.print()
0
Comment
Question by:rajuare
2 Comments
 
LVL 63

Accepted Solution

by:
Zvonko earned 200 total points
ID: 18755610
Not possible.
All controls of the browser are out of scope for scripting because scripts are executed in a SandBox context not allowing any access out of the sand box.

0
 
LVL 1

Assisted Solution

by:BillyBoJimBob
BillyBoJimBob earned 50 total points
ID: 18757773
Zvonko's absolutely right.

Besides, anyone can simply install a print-to-pdf driver anyways.  This actually works better than the default "print to file" checkbox as it completely retains the original layout while the "print to file" option doesn't.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question