Link to home
Start Free TrialLog in
Avatar of usmanshahid
usmanshahid

asked on

javascript: window.print()

hi there..
Well the javascript window.print() prints the entire page. What if i want to set the height/ width/ borders of the page to be printed. Is there any function available for this in java scripts. Or in VB scripts. and also the above function opens a printer dialogue.. Is there any way to send a print with out displaying a dialouge to user.?? (if not in js then in VB scripts.).  
regards
usman
ASKER CERTIFIED SOLUTION
Avatar of jaysolomon
jaysolomon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of avner
avner

You can do this using PDF or ActiveX. not using HTML or JavaScript in any way.
avner

i misread the Q..

>>>>>>>>>>> Is there any way to send a print with out displaying a dialouge to user.??

This would be a security breech.

As you said avner, you can use PDF or ActiveX.


usmanshahid,

>>> What if i want to set the height/ width/ borders of the page to be printed.

You can use css for this, you can set the style sheet to print what you want and not print what you do not want.