Remove C # Details WebBrowser Print

2

Just like in the image, do I need to remove these details in the corner of the page and put a description in the lower corner of the page?

I'm making an impression like this:

wb.ShowPrintPreviewDialog ();

    
asked by anonymous 15.08.2014 / 19:22

1 answer

1

Try to take a look at the use of @media print via css. Here's a link to some cool examples on the subject: link

Basically you need to configure the areas you want to print:

<!DOCTYPE html>
<html>
    <head>
      <title>Not Print</title>
      <style type="text/css">
          @media print { 
              .notprint { visibility:hidden; } 
          }
      </style>
    </head>
    <body>
      <strong>Isto vai ser impresso!</strong>
      <div class="notprint">
          Já isto, não será impresso!
      </div> 
      Aqui também será impresso!             
    </body>
</html>

Example source: Taylor Lopes (link above)

    
02.09.2014 / 19:35