Karthik G

Karthik G

  • NA
  • 8
  • 1.3k

print the value in pre-printed dot matrix paper

Jan 30 2018 6:05 AM
This is my coding but it still more than two paper or printing it on the different place 
 
<html>
<head>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
<script src="jquery.min.js"></script>
<script src="bootstrap.min.js"></script>
<style>
body
{
font-size:15px;
font-family: "Cylonic Crossdraft";
font-size: 25px;
}
@media print {
html, body {
width:5.5in;
height: 5.5in;
display: block;
font-family: "Cylonic Crossdraft";
font-size: 25px;
}
@page
{
size: 21.59cm 13.97cm;
size:landscape;
}
}
</style>
<body style="width:900px;">
<div style="margin:20px 25px ;">
<table class="table table-bordered">
<tr>
<td class="pull-left">
Shenbagavalli<br/>
TN 57 AK 0234 <br/>
94521
</td>
<td class="pull-right">
1<br/>
20-1-2018
</td>
</tr>
</table>
<table class="table table-bordered">
<br/>
<tr>
<td>1</td>
<td>ENGINE OIL</td>
<td>30</td>
<td>100</td>
<td>3000</td>
</tr>
<tr>
<td></td>
<td>SGST</td>
<td></td>
<td></td>
<td>170</td>
</tr>
<tr>
<td></td>
<td>CGST</td>
<td></td>
<td></td>
<td>170</td>
</tr>
</table>
<table class="table table-bordered">
<tr>
<td><b></b></td>
<td>41.75 Kmpl</td>
<td colspan='5'> </td>
<td class="text-right"><b> </b></td>
<td>3340</td>
</tr>
</table>
</div>
</body>
</head>
</html>
<script>
window.print();
//window.location.assign('demosales.php');
</script>

Answers (1)