PDA

View Full Version : page setup using asp


suu
04-08-2004, 12:35 PM
Hello!

I've got a page where i have a simple printing button. the problem is that i've got a wide grid in the printing page. i need to find a way to "program" my page setup to print in landscape.
is this possible?
i really need help here.

thanks in advance

A1ien51
04-08-2004, 06:35 PM
It can not be done with asp or JavaScript.

Ie this is IE only, there is an active X control that you can change it.

The best bet is to inform the user to select landscape....

Eric

suu
04-12-2004, 05:23 PM
okay

thanks for the help

Bullschmidt
04-19-2004, 07:51 AM
I agree with Eric and here's one possible way to do that:

Response.Write "<script type='text/javascript'>alert('Please choose landscape orientation within your browser before printing.');</script>"

dgintz
04-29-2004, 03:13 PM
I'm in the same boat. Really need to have some javascript or other capability to associate a printer-selection/page-setup with a button on the page.

Can someone point me to the Active-X component and also if you have have other ideas on how to do this (the "alert" box is a good idea, but would like something a little more automatic), I would appreciate it. Please email me at dgintz@airlink.net.

Thanks!