M
Mangler
This is probaly a dumb question but I cant find the answer. I need to
print some data to a label from a web page. The label is 2.25" x 1.25"
and when the page is printed the printer spits out 2 pages. I assume
the page can be sized but I dont know how. Can anyone give an example
or refer me to a place where I can get some help? Below is my page, its
displays a barcode and some info above and below it.
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Barcode Breakdown</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<script language="javascript1.2">
function autoClose() {
setTimeout("window.close()", .2 * 1000) // 30 is seconds
}
</script>
</head>
<body onLoad="autoClose()">
<p>
<%
RMABarCode = Request.QueryString("rma")
response.write Request.QueryString("phmodel") & "<div><img
src='barcode.asp?code=" & RMABarCode &
"&height=25&width=1&mode=code39'></div>" & Request.QueryString("rma")
& "-" & Request.QueryString("idlot")
%>
</p>
<script language=JScript>
window.print();
</script>
<p> </p>
</body>
</html>
print some data to a label from a web page. The label is 2.25" x 1.25"
and when the page is printed the printer spits out 2 pages. I assume
the page can be sized but I dont know how. Can anyone give an example
or refer me to a place where I can get some help? Below is my page, its
displays a barcode and some info above and below it.
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Barcode Breakdown</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<script language="javascript1.2">
function autoClose() {
setTimeout("window.close()", .2 * 1000) // 30 is seconds
}
</script>
</head>
<body onLoad="autoClose()">
<p>
<%
RMABarCode = Request.QueryString("rma")
response.write Request.QueryString("phmodel") & "<div><img
src='barcode.asp?code=" & RMABarCode &
"&height=25&width=1&mode=code39'></div>" & Request.QueryString("rma")
& "-" & Request.QueryString("idlot")
%>
</p>
<script language=JScript>
window.print();
</script>
<p> </p>
</body>
</html>