I have a page to print, it was done with the bootstrap, I would like to keep the layout with the same formatting, I am doing it this way:
Thank you
<script>
function cont(){
var conteudo = document.getElementById('print').innerHTML;
tela_impressao = window.open('about:blank');
tela_impressao.document.write(conteudo);
tela_impressao.window.print();
tela_impressao.window.close();
}
</script>
<div id="print" class="conteudo">
<br />
<div class="panel panel-default">
<div class="panel-heading"><small> Número do Jogo : @TempData["numero_jogo"] </small></div>
<div class="panel-heading"><small> Vendedor : @TempData["nome_vendedor"] </small></div>
<div class="panel-heading"><small> Impressão : @DateTime.Now </small></div>
</div>
<div class="list-group">
<a href="#" class="list-group-item active">
Detalhe
</a>
@if (Model.Count() > 0)
{
foreach (var item in Model)
{
<a href="#" class="list-group-item"> @Html.DisplayFor(c => item.NUMERO_JOGO) </a>
}
}
</div>
<br />
</div>