473,388 Members | 1,355 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,388 software developers and data experts.

How to only print something once

I have a user pop a window that has a window.print on it. The problem is the
client only wants the coupon printed once. There is no way to stop multiple
prints is there?

--
David
Nov 19 '05 #1
3 1353
If the users have to register to print, you could easily track
it...otherwise you could write a cookie to the client, but that's very
unreliable and easy to hack...no other way.

you could use a captcha control to stop bots from mass printing
(http://dotnetfreak.co.uk/blog/archiv...11/06/166.aspx) though that's an
accessibility nightmare...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"DaveF" <df*****@geodecisions.com> wrote in message
news:Of****************@TK2MSFTNGP09.phx.gbl...
I have a user pop a window that has a window.print on it. The problem is the client only wants the coupon printed once. There is no way to stop multiple prints is there?

--
David

Nov 19 '05 #2
The problem is the print dialog box that comes up. You can print multiple
coupons.

--
David

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
If the users have to register to print, you could easily track
it...otherwise you could write a cookie to the client, but that's very
unreliable and easy to hack...no other way.

you could use a captcha control to stop bots from mass printing
(http://dotnetfreak.co.uk/blog/archiv...11/06/166.aspx) though that's an accessibility nightmare...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"DaveF" <df*****@geodecisions.com> wrote in message
news:Of****************@TK2MSFTNGP09.phx.gbl...
I have a user pop a window that has a window.print on it. The problem is

the
client only wants the coupon printed once. There is no way to stop

multiple
prints is there?

--
David


Nov 19 '05 #3
Oh ya...
well, you might wanna take a look at
http://www.meadroid.com/scriptx/index.asp which provide an ActiveX control
which might help..but other than that, there's no simple solution that I'm
aware of.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"DaveF" <df*****@geodecisions.com> wrote in message
news:et**************@TK2MSFTNGP10.phx.gbl...
The problem is the print dialog box that comes up. You can print multiple
coupons.

--
David

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
If the users have to register to print, you could easily track
it...otherwise you could write a cookie to the client, but that's very
unreliable and easy to hack...no other way.

you could use a captcha control to stop bots from mass printing
(http://dotnetfreak.co.uk/blog/archiv...11/06/166.aspx) though that's
an
accessibility nightmare...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"DaveF" <df*****@geodecisions.com> wrote in message
news:Of****************@TK2MSFTNGP09.phx.gbl...
I have a user pop a window that has a window.print on it. The problem

is the
client only wants the coupon printed once. There is no way to stop

multiple
prints is there?

--
David



Nov 19 '05 #4

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

Similar topics

23
by: stewart.midwinter | last post by:
No doubt I've overlooked something obvious, but here goes: Let's say I assign a value to a var, e.g.: myPlace = 'right here' myTime = 'right now' Now let's say I want to print out the two...
4
by: James | last post by:
Hello All, I have a stored procedure which will act like a main/controller script which will then invoke more stored procedures (~20). Basically, it looks something like below: -- start...
4
by: BruceJ | last post by:
I am looking for a way to let somebody print a ticket, but only once. How can I do that? I am a novice, so please help.... Bruce
18
by: jacob navia | last post by:
In C, we have read-only memory (const), read/write memory (normal data), and write only memory. Let's look at the third one in more detail. Write only memory is a piece of RAM that can only...
13
by: ATJaguarX | last post by:
I have a Zebra S500 and multiple S600 label printers. http://www.zebra.com/id/zebra/na/en/index/products/printers/industrial_commercial/s600.html They are currently being used in our legacy...
1
by: melanieab | last post by:
Hi, I have a form with tab pages on it, and I'd like to print each page whenever a button is pressed (all the tabpages share the same print button - I just give it a different parent when another...
8
by: Ian | last post by:
I have an Access 2000 database that checks once every 4 seconds to see if a text file exists, if it does then it opens the text file, reads an ID, opens a report based on that ID, then deletes the...
3
by: Eric Layman | last post by:
Hi, If an E-coupon is limited to one person, are there ways to prevent it from printing more than once? Since on the print dialog, user can print multiple copies. Regards
2
by: ravir81 | last post by:
Hi, I am working on excel reporting using Perl. I am facing problem with writing the header part only once for all the excels created using Perl. Here is the code : ...
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: 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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.