windows.print(), prints extra info

P

PW

I'm using the windows.print() function to print a customers receipts from an
ASP. I've created a button to do it, like this ...


<td align=left>
<BUTTON TYPE=BUTTON
onClick="window.print()">&nbsp&nbspPRINT&nbsp&nbsp</BUTTON>
</td>


Unfortunately I get some additional lines printed that I don't want.

The line says ...http://localhost/pos_system/tran_sales.asp across the
bottom of the receipt. Obviously its my ASP name but how can I remove it ?
 
M

Mark Schupp

You cannot do that from ASP (or client-side code either as far as I know).
The user will have to change their page setup ( for IE, see File-Page
Setup... ).
 
R

Ray at

This is a browser setting. It is not anything that you can control with ASP
or even client-side scripting for that matter. In IE, it's File--Page
Setup---Footer

Ray at home
 
P

PW

Ray at said:
This is a browser setting. It is not anything that you can control with ASP
or even client-side scripting for that matter. In IE, it's File--Page
Setup---Footer


DOH! Thanks mate, thats fixed it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top