Remove C# Webbrowser Details Print

Asked

Viewed 149 times

2

Detalhes de impressão

Just like in the image, I need to remove these details in the corner of the page and put a description in the bottom corner of the page will be possible?

I’m making an impression like this:

Wb.Showprintpreviewdialog();

  • It is insufficient information, put how you arrived at the process in a general way and how to put a text in the footer?

1 answer

1

Try to take a look at using @media print via css. Here’s a link with some cool examples on the subject: http://taylorlopes.com/? p=1855

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)

Browser other questions tagged

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