473,387 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

printing in landscape using CSS

Hi,

I am new to XSL and I am trying to print in landscape mode. I have tried many different things but yet none of them have worked.

This is one of the codes I tried but it seems like it doesn't even do anything with it. I was wondering if I need to call this css class from somewhere or is it recognized automatically with the print media?

<style type="text/css" media="print">
div.page {
writing-mode: tb-rl;
height: 80%;
margin: 10% 0%;
}
</style>

Does this even work?? Is there even a way to print in landscape mode using XSL? Please help !!

Sandra 55
Jun 13 '07 #1
4 6007
drhowarddrfine
7,435 Expert 4TB
There is no such thing as writing-mode in css and since you are talking XSL, I'm sending this to the XML board.
Jun 13 '07 #2
Sorry, I am really trying to create this function using CSS and not XSL. It's just that I'm implementing this in an xsl file (transforming an xml file to html) and I just wanted to setup this html page so that when it is printed, it is printed in landscape mode so that all the columns of the table would be there. And I want this to be done automatically without the user having to set it up manually.
Jun 13 '07 #3
Dököll
2,364 Expert 2GB
Sorry, I am really trying to create this function using CSS and not XSL. It's just that I'm implementing this in an xsl file (transforming an xml file to html) and I just wanted to setup this html page so that when it is printed, it is printed in landscape mode so that all the columns of the table would be there. And I want this to be done automatically without the user having to set it up manually.
Since you were heading this way, anyway, sandra55, you can load your CSS in the xml file in the is fashion:

Expand|Select|Wrap|Line Numbers
  1. <?xml-stylesheet type="text/xsl" href="ApartmentSearch.xsl"?>
  2.  
For a quick look at how this works go to the XML page:

http://www.thescripts.com/forum/thread662186.html

For additional help on the CSS portion, fetch the HTML/CSS forum:

http://www.thescripts.com/forum/forum143.html

Good luck with the project!
Jun 14 '07 #4
Ok well here is what I found:

For firefox:
@page land {size: landscape;}

For IE:
.land{filter: progid:DXImageTransform.Microsoft.BasicImage(rotat ion=1)}

and in your HTML BODY you have to include:

<BODY class="land">

The only problem with IE is that the quality is not too great. I came up with the conclusion that all the other codes that are there to force landscape printing work only on Opera.
Jun 15 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Darcy Kahle | last post by:
I am trying to do some advanced printing in python using the win32ui module, and have run into an issue. I need to print a page landscape. As I could not determine how to specify the orientation...
4
by: Jody Gelowitz | last post by:
I am having a problem with printing selected pages. Actually, the problem isn't with printing selected pages as it is more to do with having blank pages print for those pages that have not been...
3
by: MarcJ | last post by:
Hello, I can't seem to get printing to landscape working. Here is some of the code I've tried. '--------------------------------------------------------------------------------- Dim...
5
by: Patrick De Ridder | last post by:
How can I turn what I want to print 90 degrees using the logic below? Please tell me the code with which to make the modification. Many thanks, Patrick. using System.ComponentModel; using...
5
by: cpopham | last post by:
I tried posting earlier and it never showed up.. I have a simple program to print a text file. I need to know how to change the page settings to landscape if it is not already in ladnscape mode. ...
3
by: D Witherspoon | last post by:
No matter what I do the default paper size is always either A3 or 11 by 8.5 .. Here is the code. Dim dlg As DialogResult pd.DocumentName = "Weld Image" Dim pkPaperSize As New...
8
by: Rick Lederman | last post by:
I am using a PrintDocument and PrintDialog to print. The first time that I print it works, but when I try to print a second time without exiting the entire program I get an...
1
by: lord.zoltar | last post by:
Hi, I'm trying to print a text report from an application. It works fine, except in landscape mode, which it seems to ignore. I have a function that handles the PrintPage even for the...
6
by: sheinaz | last post by:
Hi I am tryign to use this to print my table in landscape by default. i am new at the xsl and need some assistance. when i try to use the following i get the error: Cannot view XML input using...
2
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.