do the Switch with windows print and only print footer

Asked

Viewed 26 times

0

windows print only sends the end of the screen I can’t understand why

Proof of Registration Simplified Selection Process of Health Notice - 01/2021 Date: 2021-02-01 15:26:18
                            <hr>

                            <div class="row invoice-info">
                                <div class="col-sm-6 invoice-col">
                                    Nome:
                                    <address>
                                        <strong>LUIZA CERQUEIRA DOS SANTOS</strong><br>
                                    </address>
                                </div>
                            
                                <div class="col-sm-3 invoice-col">
                                    Nº Inscrição:
                                    <address>
                                        <strong>ps.02.2021.5355458</strong><br>
                                    </address>
                                </div>

                                <div class="col-sm-3 invoice-col">
                                    Nº CPF:
                                    <address>
                                        <strong>054.741.695-40</strong><br>
                                    </address>
                                </div>
                            </div>
                            <div class="row invoice-info">
                                <div class="col-sm-6 invoice-col">
                                    Cargo:
                                    <address>
                                        <strong>ASSISTENTE ADMINISTRATIVO ESCOLAR</strong><br>
                                    </address>
                                </div>
                            
                                <div class="col-sm-3 invoice-col">
                                    Local:
                                    <address>
                                        <strong>ESCOLAS SEDE</strong><br>
                                    </address>
                                </div>

                                <div class="col-sm-3 invoice-col">
                                    Tipo Cargo:
                                    <address>
                                        <strong>AMPLA CONCORRÊNCIA</strong><br>
                                    </address>
                                </div>
                                <button class="btn btn-default" onclick="window.print();"><i class="fas fa-print"></i></button>
                                <button type="button" class="btn btn-primary float-right" style="margin-right: 5px;">
                                    <i class="fas fa-download"></i> Generate PDF
                                </button>
                            </div>
                            <!-- /.row -->
                            
                            <!-- this row will not appear when printing -->
                                <div class="col-12">
                                   
                                </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- /.content-wrapper -->

<!-- Main Footer -->
<footer class="main-footer">
        <strong>Copyright © 2021 Prefeitura Municipal de Porto Seguro.</strong>
        Todos os direitos reservados.
        <div class="float-right d-none d-sm-inline-block">
            <b>Versão</b> 1.0.0-rc
        </div>
    </footer>
</div>
  • the window.print() sometimes prints a visible area of html and not the whole page, do a test added that to your css: body, html, { height: 100%; width: 100%; }. If this format is bad for navigation, put this style in a css for "the print view", like this: <link rel="stylesheet" href="estilodeimpressao.css" type="text/css" media="print"/>

  • did not solve the problem

  • Friend what are you trying to do? The more details the better.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.