Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Remove URL Address and Date From Web Page Print
#1
Introduction:

I know most of you are searching for this tutorial. Today lot's of web developers were using PHP and ASP Programming language to create Billing Apps. Established billing must App must have invoice. While printing the invoice, It also prints the URL Address and Date with the print.

To avoid the print, We must add something to the invoice printing page.

Through this thread. I am going to post a CSS Code, That will help you to stop URL and Date while printing any webpage.

Code:
<style type="text/css" media="print">
    @page {
   size: auto;   /* auto is the initial value */
   margin: 0;  /* this affects the margin in the printer settings */
    }
    </style>

Add the above CSS Code to the header of the invoice page or the webpage that you need to remove the URL and Date while printing.

Like my thread if it seems help full.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)