473,387 Members | 1,374 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.

an issue related to printing of receipts.

Hi People,

I am facing an issue with printing where I have to print receipts of a
custom size. Each receipt is about 8 inch by 4inch. I am using
window.print(). When a receipt is printed another 3 receipts are
flushed out of the printer. I want only the printed receipt out of the
printer. Am using a dot-matrix printer and the receipts are in a
continuation (i.e around 1000 receipts attached to one another).

I want to print only one receipt at a time. Please help me. Its very
urgent.

Apr 26 '07 #1
2 2303
Ravi wrote on 26 apr 2007 in comp.lang.javascript:
Hi People,

I am facing an issue with printing where I have to print receipts of a
custom size. Each receipt is about 8 inch by 4inch. I am using
window.print(). When a receipt is printed another 3 receipts are
flushed out of the printer. I want only the printed receipt out of the
printer. Am using a dot-matrix printer and the receipts are in a
continuation (i.e around 1000 receipts attached to one another).

I want to print only one receipt at a time. Please help me. Its very
urgent.
Scipping the inches part,
are you perhaps printing an A4 page on an A6 piece of paper?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Apr 26 '07 #2
Ravi wrote:
I am facing an issue with printing where I have to print
receipts of a custom size. Each receipt is about 8 inch by
4inch. I am using window.print(). When a receipt is printed
another 3 receipts are flushed out of the printer. I want only
the printed receipt out of the printer. Am using a dot-matrix
printer and the receipts are in a continuation (i.e around
1000 receipts attached to one another).

I want to print only one receipt at a time. Please help me.
Its very urgent.
I think you are looking for CSS print controls:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
<title>Print vs. screen</title>
<style type="text/css" media="print">
.pagebreak { page-break-after: always; }
.onlyscreen { visibility:hidden; display:none; }
</style>
<style type="text/css" media="screen">
.onlyprint { visibility:hidden; display:none; }
</style>
</head>

<body>
<p class="pagebreak">this is page 1</p>
<p class="pagebreak">this is page 2</p>
<p>this is page 3</p>
<p class="onlyscreen">this is only screen, not printed</p>
<p class="onlyprint">this is only printed, not on screen</p>
</body>

</html>

Hope this helps,

--
Bart

Apr 26 '07 #3

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

Similar topics

0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
2
by: dareinan | last post by:
i'm using php for just 2 months now. i need to print receipts for a TPS system. how do i do this? pls help me. i have already designed a receipt using echo function. i already have a design what do i...
1
by: kig25 | last post by:
Hello, When using the VB.NET PrintDocument class, I seem to be encountering an issue where the sub pd_PrintPage handles PrintDocument.PrintPage (upon continuing if HasMorePages = true) will...
1
by: giddy | last post by:
hi, I'm not very familiar with printing , but i've read about the printing classes in .NET. Now , I know my print code has to go to the PrintPage event. but i have a full apllication with a ...
9
by: Gurbinder Kaur | last post by:
Hi, i have made a project for printing fee receipt. Using Windows-XP, VBasic 6.0 & Ms-Access-97. i have designed a form for prinring receipts. m paper-size is 5x10. Two copies of bills in this...
20
by: kpfunf | last post by:
Hey all, I have a table of receipts used (Table Name: receipts, Field Name: receiptNumber) and a table with receipts issued (Table Name: Receipts Batches, Field Names: BatchID, BegRng, EndRng)....
3
Tenneyson
by: Tenneyson | last post by:
Hi I ve been tasked to develop a payment system for an insurance company using VB6.0. My problem lies at the cash office department where receipts have to be printed using a POS printer. How can i...
0
by: mcfly1204 | last post by:
We run terminal services on two different win 2k3 servers. The majority of our printers are installed on the AD running win 2k. Periodically one user will lose the ability to print to a particular...
0
it0ny
by: it0ny | last post by:
Hi guys, thanks I am fairly new to this forum so I hope I chose the right place to post this question. I try to make my program printout a deposit's report. I created a class to store the...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.