Welcome to Dream.In.Code
Become an Expert!

Join 150,191 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,042 people online right now. Registration is fast and FREE... Join Now!




Print authentication

 
Reply to this topicStart new topic

Print authentication

jmanuelh
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
+Quote Post

lolec
RE: Print Authentication
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
+Quote Post

abgorn
RE: Print Authentication
15 Sep, 2008 - 10:17 AM
Post #3

Hello Crap for Brains
Group Icon

Joined: 5 Jun, 2008
Posts: 912



Thanked: 5 times
Dream Kudos: 50
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 offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 04:18AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month