Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »Web Design Forum »CSS Forum

Notices

CSS Forum Cascading Style Sheets (CSS) and XHTML Forum


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-12-2007, 01:31 AM
rossable's Avatar
Stylish Member
 
Join Date: Oct 2007
Location: between earth and sky
Gender: Male
Posts: 700
Default CSS Web Printing

i'm wanting to print landscape... preferably without using JavaScript.

i've heard rumors around the interweb's tubes that this is possible with CSS but have not found any conformation.
the main suggestion is
HTML Code:
@page { size: landscape; }
but that has been said to only work in opera.

any thoughts?
__________________
http://justross.com/
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #2 (permalink)  
Old 11-12-2007, 02:08 AM
LeadMagnet's Avatar
Mr. Tambourine Man
 
Join Date: Jun 2007
Location: Ireland
Gender: Male
Posts: 1,381
Default

You can add a separate stylesheet for when a user prints your page and design that to look best as a landscape print. Like this:
HTML Code:
<link rel="stylesheet" type="text/css" href="printstyles.css" media="print">
You can't force the page to print out in landscape though to my knowledge. It's the user's choice how they want a page printed.
I personally wouldn't want any website having any control over my printer settings.
__________________
Subtlety is my middle name... and first and last in case you didn't get the point.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 11-12-2007, 04:06 AM
rossable's Avatar
Stylish Member
 
Join Date: Oct 2007
Location: between earth and sky
Gender: Male
Posts: 700
Default

right. i already have a "@media .print {}" section in my CSS because that is the most widely recognized way to style the print (cross browser support is vital!). i would like to avoid a JavaScript "Print Now" button to ensure that all the users will get the same results since some just hit ctrl+p to get the job done (and some like to disable the JavaScript).

i need to print landscape because i am trying to print out an dynamically generated invoice with a section for a detached bill payment stub (the type that you get at the bottom of your electric bill or something) so the user can view their statements online and then print this out and mail it back to us with their check (checkque?). it prints fine portrait but to be sized correctly for windowed envelopes it would be best to print landscape. the most painless for me and possibly the most scalable in the long run would have been to use CSS for this but it's looking like it wont be possible (or if it is it would be some hack that would not be cross-platform/browser compatible). i could probably whip up some JavaScript/AJAX or do some C# code behind to get the results but i would love to avoid this if at all possible.

technologies in use for the project are ASP.NET 1.1, JavaScript/AJAX, CSS 2.1, XHTML 1.1, and SQL Server 2003. any and all suggestions are welcome.
__________________
http://justross.com/
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
TrueType for Printing LaurenMarie Typography Forum 10 28-11-2007 05:16 PM
Is printing like this possible? Markteepee Graphic Design Forum 2 31-10-2007 07:55 PM
Wall art printing methods? sabian1982 Graphic Design and Web Design Help 0 06-08-2007 02:23 PM
Experiences with Printing heliopagus Graphic Design Business Forum 4 18-06-2007 08:11 PM
Printing for the Web: CSS solutions D856C CSS Forum 1 21-02-2007 10:59 AM


All times are GMT. The time now is 09:31 PM.



Estetica Design Forum's Privacy Policy
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5