Window.Print using Javascript for disabling Print to file option

Want to disable "Print to file check box" appears in Print dialog box while using window.print()
LVL 3
rajuareAsked:
Who is Participating?
 
ZvonkoConnect With a Mentor Systems architectCommented:
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
 
BillyBoJimBobConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.