Forum Moderators: open

Message Too Old, No Replies

Print web page with "landscape" orientation

Can you specify that on print?

         

Don_Hoagie

3:13 pm on Sep 1, 2005 (gmt 0)

10+ Year Member



Please tell me it's as easy as

onclick="window.print();return false;
orientation='landscape'"

Yeah. Don't laugh at my horrid javascript capabilities.

I'm sure it's not that easy, but is it possible?

tedster

4:25 pm on Sep 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Seems like it should be simple, doesn't it? Unfortunately browsers and print support have been a real mess to date. One of the areas that MS has said they are focused on in their development of IE7 is an "improved print experience".

If this is doable, I doubt that it can be dome with Javascript alone. What I think you need to do -- beyond the basic javascript print function -- is to associate a CSS stylesheet with @print -- and even beyond that, you will still have a solution for IE only, because you will need ActiveX and the use of an IE proprietary rotation filter in the CSS.

I've only ever read about this, never been hands on, so take what I say with that in mind.

Don_Hoagie

5:09 pm on Sep 1, 2005 (gmt 0)

10+ Year Member



Dang... I don't know if it's worth all that effort.

Maybe as a band-aid fix, instead of having a link for "print this page", i'll put in a link that says "write the information on this page down on a piece of paper", and when you click it, it pops a new window that says "Ready... Go!"

It's time to give the user some REAL interactivity.

Thanks for your help