(e-mail address removed) wrote on 22 nov 2006 in
microsoft.public.inetserver.asp.general:
what is the easy way to have users print results from a query to avery
labels using a web app through internet explorer.
thoughts?
Yes, it can easily be done with a clientside table filled with a
serverside database output loop.
The css in my case, that does not use Avery, since that is not what we
use here in Europe, looks like this. I use seperate tables with identical
content for the screen and the printer table. Measurements are given in
mm [millimeter], and any good printerdriver will comply:
<style type="text/css" media="print">
body {
background-color:white;
font-size: 12pt;
margin:0;
margin-top:0;
}
table {
table-layout:fixed;
}
table.pagebreak
{
page-break-before:always;
}
table.nopagebreak
{
page-break-before:;
}
td {
font-size: 12pt;
width:33%;
height:37mm;
padding-left:8mm;
border-left:white dashed 1px;
border-bottom:white dashed 1px;
border-collapse: collapse;
}
..scherm {display:none;}
</style>
<style type="text/css" media="screen">
body {
background:#bbb;
font-size: 18pt;
text-align:center;
}
table {
background-color: #eee;
border-right:red dashed 1px;
margin:40px;
}
td {
font-size: 9pt;
text-align:left;
width:40mm;
height:27mm;
padding-left:8mm;
border-left:red dashed 1px;
border-bottom:red dashed 1px;
border-collapse: collapse;
}
..scherm {display:;}
</style>