Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: IE Print (javascript)


Message #1 by "Ebers, David" <David.Ebers@o...> on Mon, 2 Apr 2001 08:50:29 +0200
Hi there,

I don't think you can do that using plain ol' JavaScript. After all, you 
are just calling up the print dialog of the browser. Using only VBScript 
you may have better chances since IE can be programmed against. Not sure 
if this is still possible from within IE, but it can be done using script 
from a vbs or a wsh file.
However, this solution is not very cross-browser, since only IE 
understands VBScript natively.

Imar


> Hello
>  
> Can some please tell me if I can predifine the settings within the print
> dialog
> Would always like to print landscape:
>  
> But the browser each time I call
>  
> <a href="javascript:window.print() ...
>  
> hast portrait as default
>  
> Thanks David

  Return to Index