Click to See Complete Forum and Search --> : Print


ajsfernandes
03-28-2003, 04:53 PM
I need to print a web page in landscape format (automatically) when the user click a link or button!

Can someone help me?

angrytuna
03-28-2003, 05:06 PM
The window.print() method will print exactly as if the user had clicked the print button. Don't know how landscape mode could be predefined, sorry. Hopefully the above can get you started, at least.

~at

Andyson
04-03-2003, 03:12 AM
Hi,
i have the same Problem with the print option.
I put the tag in the head of my HTML-Document:
....
<html>
<head>
<title>...</title>
<style type="text/css">
@media print; {
BODY { Size: 8.5in 11in landscape;
Margin: 0.5in; }
}
</style>
...
</head>
<body>
...
<a href="javascript:window.print();"><img src ="../images/printer.jpg"></a>
...
</body>
</html>
------
So the print dialog box appears but the standard is set on Portrait format.
Anything wrong with my code?
I use IE 5.5
I hope that someone can help me.
All the best
Andy

Andyson
04-03-2003, 11:46 PM
Hey,
i tried it with IE 6.0. It also don't work.
Is my code right or there any mistakes in my Code?
Have you tried it already Dave?
Wich Browserversion dou you have?
Thank you
Andy