Page 1 of 1
browser printing
Posted: Mon Feb 12, 2007 12:07 pm
by aceconcepts
Hi,
I have been able to print using the following code:
Code: Select all
<A class="blue" HREF="javascript:window.print()">Print This Page</A>
This is fine, however, when i print using this method the url of the page is printed top right of the page. Basically i dont want the url to appear.
How can i print so that no url is printed?
Posted: Mon Feb 12, 2007 12:13 pm
by Kieran Huggins
you could create a PDF and print that
Re: browser printing
Posted: Mon Feb 12, 2007 12:20 pm
by volka
aceconcepts wrote:This is fine, however, when i print using this method the url of the page is printed top right of the page. Basically i dont want the url to appear.
How can i print so that no url is printed?
It's a browser setting that can't be changed by server-side php. That's why you had to add
aceconcepts wrote:<A class="blue" HREF="javascript:window.print()">Print This Page</A>
javascript (i.e. client-side) code to the link.
What browser do you use?
Posted: Mon Feb 12, 2007 3:58 pm
by RobertGonzalez
Moved to Client Side.
Posted: Mon Feb 12, 2007 3:58 pm
by RobertGonzalez
This has been asked before. What you are trying to get rid of is a Page Setup -> Header setting. That is not controlled by the code, but by the browser.