E
E
Evgeny Ermolaev2014-06-04 13:13:08
HTML
Evgeny Ermolaev, 2014-06-04 13:13:08

Printing the generated page

After filling in the price list, an html document is generated, which then must be sent for printing and stored on the server. Everything is formed and preserved. The only thing is that I can not find the exact width and height of the block for printing in A4 format. And how to print only a certain block, and not the entire page?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Ineshin, 2014-06-04
@patch94

@media print { /* Стиль для печати */
     /*тут вы можете отключить все не нужные для печати блоки*/
    .header, .footer {display: none;}
}

Y
Yuri Lobanov, 2014-06-04
@iiil

See how it is implemented in bootstrap getbootstrap.com/css/#responsive-utilities-print

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question