Solved

Controlling printing through credits

Posted on 2003-10-27
6
350 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
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

829 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