JQuery PrintArea + Bootstrap + ASP.NET

2

I am using ASP.NET + Bootstrap and I want to implement a PRINT SCREEN button using PrintArea.js and I get it as I show in screenshot. (without the format as shown on my form) and yet if I do CONTROL P the page is showing me what it is (also left in image) Could someone please tell me what else should I do to use PrintArea to show me such what is my real screen (with style)?

Thanks in advance!

P.D. I enclose a capture of what the CTRL + P prints (with style as shown in my form) and another capture that the Jquery printArea prints without style.

<script type="text/javascript">
        $(document).ready(function () {
            $("#btnImprimirPantalla").click(function () {
                $("div#myPrintArea").printArea();
            })
        });
    </script>
<a href="#" id="btnImprimirPantalla" class="btn btn-info btn-md" role="button">Imprimir Pantalla</a>

<div id="myPrintArea">
Y AQUI COLOCO MI CODIGO QUE QUIERO QUE SE MUESTRE EN LAIMPRESION
 </div>
    
asked by lmendivil 31.08.2016 в 15:16
source

0 answers