I am trying to take printout div content consist of many tables with tags ViewTraveller
it looke like table with row and column , but print preview coming with out column and row borders (i.e ) showing only data with out lines.
Please help on this
View
//
@{
Layout = null;
}
table {
border: 1px solid black;
border-collapse: collapse;
width: 100%;
}
td {
border: 1px solid black;
border-collapse: collapse;
height: 20px;
#width:300px;
text-align: center;
font-size: 12px;
}
function PrintDiv() {
var divContents = document.getElementById("dvContents").innerHTML;
var printWindow = window.open('', '', 'height=200,width=400');
printWindow.document.write('DIV Contents ');
printWindow.document.write('');
printWindow.document.write(divContents);
printWindow.document.write('');
printWindow.document.close();
printWindow.print();
}
| @ViewBag.loadreport[0].STRESS_TEST - @ViewBag.loadreport[0].TEST_CODE | @ViewBag.loadreport[0].STRESS_TEST | SPEC: 25-00001 | |
| REQUESTOR | REQUEST TYPE | ASSEMBLY LOT NO | MFG PART NO. | PACKAGE CODE | REL LAB ID |
| @ViewBag.loadreport[0].Requestor | @ViewBag.loadreport[0].RequestorType | @ViewBag.loadreport[0].Assembly_LotNO | @ViewBag.loadreport[0].MFG_Part | @ViewBag.loadreport[0].Package_code | @ViewBag.loadreport[0].Rel_LabId |
| EXTENSION# | QTP/MONITOR# | INTERNAL DEVICE | MKT PART NO. | DATE | REQUEST NO. |
| @ViewBag.loadreport[0].TV | @ViewBag.loadreport[0].QTP | @ViewBag.loadreport[0].Internaldevice | @ViewBag.loadreport[0].MKT_part | @ViewBag.loadreport[0].date | S@ViewBag.loadreport[0].Request_NO |
| TEST_CONDITION |
|
|
| 1 | 2 | 3 | 4 |
|
|
//
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Laxmidhar SahooPosted Feb 17, 2018, 10:51 PM
Sanwar RanwaPosted Feb 17, 2018, 7:08 AM