When I print, the css class is not being used although it appears when using the program
<script type="text/javascript">
function printDiv() {
var divToPrint = document.getElementById('DivIdToPrint');
var newWin = window.open('', 'Print-Window');
//newWin.document.open();
newWin.document.write('<html><body onload="window.print()">' + divToPrint.innerHTML + '</body></html>');
newWin.document.close();
setTimeout(function() { newWin.close(); }, 10);
}
</script>
<div id="DivIdToPrint" class="ListadoLicencias">
<asp:Listview>
</div>
<br />
<asp:Button runat="server" ID="cmdImprimir" Text="Imprimir" OnClientClick="printDiv();" />