Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

click here to print ??

Status
Not open for further replies.

DOGWATCH

Programmer
Mar 11, 2004
120
US
this code

<a href=javascript:window.print()>CLICK HERE TO PRINT</A>

will bring up the window for printing. Is there anyway I can make it so it always makes the default set to landscape printing?
 

As far as I know, the only way to do this programatically, is to use an ActiveX control - and doing this will mean it works on IE only, and then only where ActiveX settings allow it.

Hope this helps,
Dan
 
thanks, probably not worth the effort but you would think they would make it easier to control very basic operations of the printer.
 
Javascript may not be the language to do this, but printing in landscape is a pretty basic thing.

It would be nice if there was a very easy way to add a clickable link on a web page that would make the job print in landscape.

Perhaps there is a DLL or COM object out there would allow you to do this. Personally I haven't come across one.

 
There's a security issue here. By allowing a web browser to select print controls, it becomes an easy thing to start your printer without user interaction.

There's always a better way. The fun is trying to find it!
 
where is the ActiveX settings for IE .... I have looked in the Advanced TAB on IE5 and cannot find it.... I have an ActiveReports form that uses an ActiveX control and I found out how to print DIRECTLY.

However if the user is not an Admin on the machine Win2000, the page hangs .... I don't know why.... How can I find out if a user can run an ActiveX control or ENABLE that?

Or what set should I be looking for!
 
It was mentioned earlier that setting the default to print in landscape could be done by an ActiveX control. My situation is one where all the users will be on IE and this would be a good solution. Does anyone know the code to do this using an ActiveX?

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top