I currently have a program that prints a sheet in portrait orientation, but I must have it landscape in Internet Explorer 11. I have seen a few good answers, and yet none of them have worked for me. I have tried the following:
// These are old styles that I tried to use but would still print in
portrait mode.
1. filter: progid:DXImageTransform.Microsoft.BasicImage(Rotation=3);
2. Size: landscape
3. <Body class = "landscape"> .landscape{/*Some style*/}
I currently have a set up such as:
<style type="text/css" media="print">
@page {
size: auto;
margin: 25mm 0mm 0mm 0mm;
}
body{
margin: 0px;
}
</style>
The following code when ran in internet explorer 11 will print the sheet in the default portrait mode. The body of my html is basically just a table that needs to be printed on a sheet of paper in landscape. My question is, is there a way I can add some style or use any work around to print the sheet landscape in Internet explorer. I do not care if it works in any other browser.