Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to print a job?

Status
Not open for further replies.

FlatHead

Programmer
Oct 13, 2000
50
0
0
GB
Hi everybody i need some help on the next question:

Say we have a job that we want to sumbit to the printer.

How can we actually do this through code (JS or HTML) rather than (CTRL+P) for printing through the normal window option????

All i want to do is to track the link for the printing so later i can count how many times a document has been printed??????

My question focuses on the way the link for the printer will work in terms of how it will actually print the screen on the paper?

Please help?

Regards Zac
 
and to get the count, just call a counting function onprint (not sure if it's onprint or onbeforeprint ??)

also, keep in mind that window.print() is NOT supported by all versions of all browsers (i usually use it like this :
if (!window.print())
alert("please use the file > print menu")
 
It's onbeforeprint. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top