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.
|