The answer by Jason on
Print the contents of a DIV and the plugin he authored worked great for me.
The following is the css I added in Print.css file that I referenced to:
@media print {
.Printable {
display: block;
background-color: white;
position: fixed;
top: 0;
left: 0;
margin: 0;
padding: 15px;
font-size: 14px;
line-height: 18px;
}
.Printable .Content {
height: auto;
overflow: auto;
width: 700px; /* my specific requirement */
margin: 0;
padding: 15px;
}}
$("#Container .Printable").printThis({
debug: false,
importCSS: true,
printContainer: false,
loadCSS: "../Print.css",``
pageTitle: "TITLE",
removeInline: false
});
<link href="../Print.css" rel="stylesheet" type="text/css" />
<script src="../Scripts/printThis.js"></script>