Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML HTML Basics

Printing HTML

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

Printing HTML

Postby JamesIzzard » Fri Aug 26, 2011 3:03 am

Hi all.
I have a fair problem on my hands.
I have been writing a php based application to create invoices, credit notes, and statments automatically. All has gone very smoothly. Sadly, for all the design work and planning that went into the application, I have overlooked one pretty key issue - how the browser prints the html.
The problem is that most major browsers seem to print the site name/page name date etc. on the header and footer of the printed page. This obvioulsy isn't acceptable on a professional looking invoice and has brought the whole project to a screeching halt, considering that the site revolves around printing the finished article from online.
I just wondered if anybody out there had ever had this problem themselves, or may know of a workaround for it. Any thoughts at all would greatly appreciated.
I realise my chances of solving this are fairly slim becuase whatever happens, it is always going to be the browser providing the print facility, but I thought it was worth an ask.
Cheers
james
JamesIzzard
New php-forum User
New php-forum User
 
Posts: 11
Joined: Wed Apr 27, 2011 12:05 am

Re: Printing HTML

Postby egami » Fri Aug 26, 2011 4:06 am

The headers and page numbers, etc. are all options on the browser. This can be turned off manually, but I'm not sure if you can do it with Javascript.
User avatar
egami
php-forum GURU
php-forum GURU
 
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: Printing HTML

Postby JamesIzzard » Fri Aug 26, 2011 10:19 pm

Ok, Thanks for your answer
Would just be quite annoying if everytime you had to print you have to go into the settings etc. I will continue my search regarding the JavaScript option.
Cheers for the advice.
JamesIzzard
New php-forum User
New php-forum User
 
Posts: 11
Joined: Wed Apr 27, 2011 12:05 am


Return to HTML Basics

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.