Solved

Controlling printing through credits

Posted on 2003-10-27
6
348 Views
Last Modified: 2010-05-01
Hi,

I am writing an Internet Cafe application and have mostly all of it complete.
However, I am trying to implement a chargeable printing module.

I want customers to be able to buy 'Printing Credits' and then only be able to print if they have adequate credits.
This must work for all applications, so presumably must require some API work.

i.e.  No matter what application the user is in (Word, Notepad, IE etc), when they click Print, I need to be able to either allow the print or reject it if they don't have the required credits.  At this stage, I am not concerned with details such as whether or not the print job is in colour, but I must know how many pages are being printed.

Thanks in advance,

James.
0
Comment
Question by:James_Andrews
  • 3
  • 2
6 Comments
 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 200 total points
ID: 9629065
Here is a tutorial page to get you started on the monitoring side of the app.

http://www.merrioncomputing.com/Programming/WatchPrinter.htm
0
 
LVL 2

Assisted Solution

by:Merrion
Merrion earned 300 total points
ID: 9633298
Do the users log in with distinct login names?  If not you may have some difficulty determining who printed what...

IMO the best way to prevent printing once a users credit has expired is to remove him/her from the printers DACL so they have no rights to print.  Any solution that relies on deleting jobs may cause a high load on the print server and might even miss jobs being printed...
0
 

Author Comment

by:James_Andrews
ID: 9666528
Thanks guys,

I can't really add users to a group because that would allow them to print as many pages as they like.  Also, don't NT group permissions take effect at the next login (when the NT sec token is issued)?

What about creating a Virtual print device which did the job filtering and passes authorised jobs to the real print device?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Assisted Solution

by:Merrion
Merrion earned 300 total points
ID: 9666563
One of our clients has implemented a similar type of system by intercepting the Job_Added event and setting the print job's start time and endtime to just before midnight.  This allows the job to spool fully but it doesn't start printing out.  Then you check the number of pages and decide if it is over quota.  If so you delete the print job, if not you unset the print job start and end time so it then prints out.
0
 

Author Comment

by:James_Andrews
ID: 9666729
Thanks for the quick response.

Is there a non .Net version of the MCL Printer Monitor Component?
0
 
LVL 2

Accepted Solution

by:
Merrion earned 300 total points
ID: 9669648
I'm afraid not - there is a freeware source (in two parts) in VB6 at http://groups.yahoo.com/group/MerrionComputing/

Files are called PrintWatchServer.zip and PrintWatchClient.zip...could probably be adapted for your requirement?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now