Right Button Print Html generates blank sheet - Asp.net MVC4

Asked

Viewed 33 times

-1

Guys, I have a problem where I have an html page. Right-clicking -> Print generates a blank sheet at the end.

inserir a descrição da imagem aqui

I have already reduced the html of the page to almost nothing but still generating this extra sheet. I reduced the width and height but also did not have an effect. I think it might be something in _Layout.cshtml or something like that.

What can I do to end this extra page? Thanks

  • "generates a blank sheet at the end" will pq html not fit on a page? ever tried to do tests by removing things or changing height? what you checked?

  • 1

    Important you [Dit] your question and explain objectively and punctually the difficulty found, accompanied by a [mcve] of the problem and attempt to solve. To better enjoy the site, understand and avoid closures and negativations worth reading What is the Stack Overflow and the Stack Overflow Survival Guide (summarized) in Portuguese.

1 answer

0

The ideal would be to ignore this browser print and create a print button on your page and with JS have print an HTML optimized for printing.

Here are some tips on how to do: How to print content inside an HTML div?

Browser other questions tagged

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