Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,708 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,369 people online right now. Registration is fast and FREE... Join Now!




Print authentication

 
Reply to this topicStart new topic

Print authentication

jmanuelh
post 14 Sep, 2008 - 02:55 PM
Post #1


New D.I.C Head

Group Icon
Joined: 18 Nov, 2006
Posts: 23



Thanked 2 times
My Contributions


Hi there!

Hey i'm working in a project, the main idea is to have a printing authentication:

1.- The user sends a job to the printer (from Word, excell, paint, etc..)
2.- before the printer starts printing, it should displayed a login box (heres my question).
3.- if the login is OK, then the print job is printed, if not, the job is cancelled.

My question is what should be done to stop the printing process to do the authentication process.

Thanks

J. Manuel
User is offlineProfile CardPM

Go to the top of the page

lolec
post 15 Sep, 2008 - 12:49 AM
Post #2


New D.I.C Head

*
Joined: 14 Sep, 2008
Posts: 1

You need to create a device driver to intercept LPT port communication, use your OSīs DDK, ( WinXPDDK for winXP ).

You should look for, genprint. Basically you write a driver that captures all data sent to the printer, then, you send that data to you application and make whatever you want with it.

The only problem is DDK is very expensive so, GOOGLE GROUPS for genprint and Print Processors.

Someone here might be more helpfull...
User is offlineProfile CardPM

Go to the top of the page

abgorn
post 15 Sep, 2008 - 10:17 AM
Post #3


Hello Crap for Brains

Group Icon
Joined: 5 Jun, 2008
Posts: 867



Thanked 4 times

Dream Kudos: 25
My Contributions


Or after the "Ok" button is pressed, use the if statment (or something similar) and if it's true, then promt it to print.
User is online!Profile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 08:40AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month