Disabling any and all user print functionality

E

eclectic.01

I need to control the way a document is printed ...

I would like a user to print a 'ticket', however, if multiple 'tickets'
are selected, each ticket must be printed separately (separate piece of
paper per ticket) as each ticket holder MUST have their own individual
ticket for scanning (I can not assume the user would be smart enough to
cut up a piece of paper and distribute each ticket to each person :p)
.... I also need to make sure the ticket is printed at a res high enough
for a 2D bar code to be scannable ...

I know I can control printer hardware settings via PDF, but I need to
make sure the user doesn't just hit print, right click and print,
CTRL-P, or File | print ...

Is this possible? And if so, could you kindly point me in the right
direction?

Cheers,
Eclectic.
 
R

Randy Webb

(e-mail address removed) said the following on 5/14/2006 8:20 PM:
I need to control the way a document is printed ...

JS and HTML aren't the way though.
I would like a user to print a 'ticket', however, if multiple 'tickets'
are selected, each ticket must be printed separately (separate piece of
paper per ticket) as each ticket holder MUST have their own individual
ticket for scanning (I can not assume the user would be smart enough to
cut up a piece of paper and distribute each ticket to each person :p)
.... I also need to make sure the ticket is printed at a res high enough
for a 2D bar code to be scannable ...

You can't predict that, unless you are looking at the printer (or know
what kind of printer every user has).
I know I can control printer hardware settings via PDF, but I need to
make sure the user doesn't just hit print, right click and print,
CTRL-P, or File | print ...

Put your ticket in a hidden IFrame. When the button is clicked, it
prints that ticket and then clears the IFrame out so that it can't be
reprinted. It is not 100% fool proof, but then again, nothing about HTML
or JS is.

You could see if Zeepe has the ability to do that, never tried it though.
<URL: http://www.zeepe.com/zeepeinfo/default.asp>
which leads to ScriptX:
<URL: http://www.meadroid.com/scriptx/>

It is IE only though.
 
M

Matt Kruse

I need to control the way a document is printed ...

You can't, with HTML. But you can strongly encourage...
I know I can control printer hardware settings via PDF, but I need to
make sure the user doesn't just hit print, right click and print,
CTRL-P, or File | print ...

You can't control hardware settings in any reliable fashion (ActiveX
controls may work in some cases for IE only).

You can supply an alternative print url which will be retrieved and printed
if the user tries to print in any typical fashion:
<link href="/print_content.html" rel="alternate" media="print">

Also, using CSS you can define rules which only apply when printing, for
example.

Neither of these have to do with JS, though, so another group would be more
appropriate.
 

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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top