Printing Lanscape by Default

Posted on 2005-03-15
Medium Priority
Last Modified: 2008-02-26
Hi there,

I work as a Web Developer for  a bus company who have some quite long timetables, displayed "LEFT TO RIGHT". I was wondering how I could set the default print setting to LANDSCAPE when a timetable page is printed.

Here is the print timetable page: http://www.busways.com.au/printtimetable.asp?timetableid=336&dayofwkid=5. In Portrait, many of the bus stops are missing and cut out.

I heard that CSS doesn't support it yet, but is there any other suggested solution? At the moment, the portrait default cuts of much of the content to the right.

Thanks in advance
Question by:AjayAyyar
LVL 33

Expert Comment

ID: 13552197
USe scriptX from http://www.meadroid.com/scriptx/index.asp

again for only an IE soln http://www.experts-exchange.com/Web/Q_21019499.html
As u've already read landscape support is in CSS2 and not all browsers support it
//one ex:
<title>Landscape Printing</title>
<style type="text/css" media="print">
div.page  {
writing-mode: tb-rl;
height: 80%;
margin: 10% 0%;
<div class="page">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed
diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam
erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie
consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto.</p>

//u migh need to change tweak the width a bit
LVL 19

Accepted Solution

webwoman earned 300 total points
ID: 13554219
For an intranet where you control everything and KNOW that you won't kick off security alerts, that can work.

For a regular internet site, where you have no idea what browser they're using or what security settings -- no. You have NO WAY to control printing.

Put a notice on the page. It STILL won't guarantee it prints right.

Better is to offer an option to the schedules as PDF. Whether you generate the PDF dynamically or use something static is up to you. You KNOW how PDF will print -- and you can set it up as landscape.

Author Comment

ID: 13648780
I found a compromise.

Thanks anyway.



Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
Over time, the online landscape has altered considerably, but that’s nothing compared to the up-and-coming trends that will shape the web design industry in the coming year. Keep reading to find out which trends will shape B2B web design in 2018.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Suggested Courses
Course of the Month12 days, 21 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question