Solved

Controlling printing through credits

Posted on 2003-10-27
6
347 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

759 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

18 Experts available now in Live!

Get 1:1 Help Now