Hi,
Try this ....call this js function on button click..
function PrintReport()
{
var strHtml = '<html><head><title>Test Page to print</title></head><body><B>Test Page to print</B></body></html>'//Your Html code here;
var printContent = strHtml;
var windowUrl = 'about:blank';
var uniqueName = new Date();
var windowName = 'Print' + uniqueName.getTime();
var printWindow = window.open(windowUrl, windowName);
printWindow.document.write(
'<link href="css/style.css" rel="stylesheet" type="text/css" />' +
strHtml.replace(/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig, "") + '</div>'
);
$(printWindow.document).find('a').each(function () {
$(this).attr("href", "");
});
printWindow.focus();
printWindow.print();
}