javali
asked on
print in landscape using asp
Hi,
I have a page that contains tables, how do i make it to print in landscape mode using asp.
thanks in advance,
anil
I have a page that contains tables, how do i make it to print in landscape mode using asp.
thanks in advance,
anil
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hey Stu,
that looks fine, but could not set the margins properly, tried a lot
<html>
<head>
<style type="text/css">
@media print
{
div.page
{
writing-mode: tb-rl;
height: 90%;
width: 90%;
BACKGROUND-COLOR: lightblue;
}
#Tab2
{
margin-right: 40pt;
margin-left: 0pt;
margin-top: 0pt;
margin-bottom: 0pt;
filter: progid:DXImageTransform.Mi crosoft.Ba sicImage(R otation=1) ;
}
}
</style>
</head>
<body>
<div class="page">
<!-- This will generate the landscape table in print mode -->
<span> </span>
<span> </span>
<span> </span>
<table id='Tab2' border="1">
<tr>
<td>
<table border="2" class="asdf"><tr><td>
<table border="2" class="asdf"><tr><td>
This is the second table, printed in landscape 1
</td></tr></table>
</td></tr></table>
<table border="2" class="asdf"><tr><td>
This is the second table, printed in landscape 2
</td></tr></table>
<table border="2" class="asdf"><tr><td>
This is the second table, printed in landscape 3
</td></tr></table>
<table border="2" class="asdf"><tr><td>
This is the second table, printed in landscape 4
</td></tr></table>
</td>
</tr>
</table>
</div>
</body>
</html>
could u help me,
anil
that looks fine, but could not set the margins properly, tried a lot
<html>
<head>
<style type="text/css">
@media print
{
div.page
{
writing-mode: tb-rl;
height: 90%;
width: 90%;
BACKGROUND-COLOR: lightblue;
}
#Tab2
{
margin-right: 40pt;
margin-left: 0pt;
margin-top: 0pt;
margin-bottom: 0pt;
filter: progid:DXImageTransform.Mi
}
}
</style>
</head>
<body>
<div class="page">
<!-- This will generate the landscape table in print mode -->
<span> </span>
<span> </span>
<span> </span>
<table id='Tab2' border="1">
<tr>
<td>
<table border="2" class="asdf"><tr><td>
<table border="2" class="asdf"><tr><td>
This is the second table, printed in landscape 1
</td></tr></table>
</td></tr></table>
<table border="2" class="asdf"><tr><td>
This is the second table, printed in landscape 2
</td></tr></table>
<table border="2" class="asdf"><tr><td>
This is the second table, printed in landscape 3
</td></tr></table>
<table border="2" class="asdf"><tr><td>
This is the second table, printed in landscape 4
</td></tr></table>
</td>
</tr>
</table>
</div>
</body>
</html>
could u help me,
anil
Sorry, My e-mail doesnt seem to be working right today at work ... (woulda gotten back to ya sooner...)
-- Which margins are you trying to change? (top, left, bottom, right)
I tried playing with it a bit but no luck yet...
-- Im not terribly great with CSS, and had to get help with this from someone else myself if you take a look at the link i provided above from my question. But you may be able to post something in the CSS forum and get better results...
Link to CSS Forum : https://www.experts-exchange.com/Web/Web_Languages/CSS/
-- Hope this helped a lil though ...
~Stu :-)
-- Which margins are you trying to change? (top, left, bottom, right)
I tried playing with it a bit but no luck yet...
-- Im not terribly great with CSS, and had to get help with this from someone else myself if you take a look at the link i provided above from my question. But you may be able to post something in the CSS forum and get better results...
Link to CSS Forum : https://www.experts-exchange.com/Web/Web_Languages/CSS/
-- Hope this helped a lil though ...
~Stu :-)
2) Get everybody who might possibly want to use that page to download and install your new, completely insecure, browser.
Lacking that, you have NO WAY. ;-)
And ASP runs on the SERVER, not the CLIENT.