473,387 Members | 1,398 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

windows.print(), prints extra info

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 ?

Jul 19 '05 #1
3 2854
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

"PW" <pw*@NObigSPAMpond.net.au> wrote in message
news:eL**************@TK2MSFTNGP12.phx.gbl...

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 ?

Jul 19 '05 #2
PW

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:uo**************@TK2MSFTNGP10.phx.gbl...
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.

Jul 19 '05 #3
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... ).

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"PW" <pw*@NObigSPAMpond.net.au> wrote in message
news:eL**************@TK2MSFTNGP12.phx.gbl...

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 ?

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Claudio Grondi | last post by:
Background information: --------------------------------- in order to monitor mainboard sensory data as fan speeds, temperatures, applications like SpeedFan http://www.almico.com/speedfan.php or...
0
by: Rich | last post by:
i have a web page that uses a javascript function to show/hide some info using css "visibile" "hidden" attributes of "id". the js was a free script that i modified for my use. works great. to...
0
by: gmesmer | last post by:
Hello I have created an assembly to print a pdf document and I wrote some unit tests and everything works from within nuint and cruisecontrol.net. ( I am using C#) Next I have to put together a...
1
by: Evets Htims | last post by:
This is Access 2003. Have a report that includes three subreports stacked on top of one another (they display order items). In the report On Open I build a recordset (to get a value from a foreign...
8
by: stemo76 | last post by:
I have created a report with subform/subreports. I can see all the data on the screen but when I try to print it to a printer or adobe distiller I get 'The Microsoft Jet Database engine could not...
8
by: vijay | last post by:
Hello, As the subject suggests, I need to print the string in the reverse order. I made the following program: # include<stdio.h> struct llnode { char *info;
22
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the...
4
by: joriveek | last post by:
Hi, I want to print a string with defined width left trailed; How can I do this? Example: Print ("%05d%3s", &test1, test2); say test1 = 23 test2 = Hi
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.