getting print job information using c#
-
Hi everyone. Am currently tasked with a responsibility of developing a small application to monitor and log all printing jobs in an a Internet cafe.the application should be able to do the following:- -when a user sends a print command,information such as the number of pages (sent for printing and those successful printed) and document name user intends to print should be captured and stored in a database. -the name of the computer from which the job is sent should be captured In case the printer prints less pages as intended by user,the system should be able to get the reason why it printed less pages (maybe printer running out of papers,or process cancel led by user) The problem is that i don't know where to start from.Any helpful information(ie tutorials and suggestions) is highly appreciated. THANKS IN ADVANCE. Pascal
-
Hi everyone. Am currently tasked with a responsibility of developing a small application to monitor and log all printing jobs in an a Internet cafe.the application should be able to do the following:- -when a user sends a print command,information such as the number of pages (sent for printing and those successful printed) and document name user intends to print should be captured and stored in a database. -the name of the computer from which the job is sent should be captured In case the printer prints less pages as intended by user,the system should be able to get the reason why it printed less pages (maybe printer running out of papers,or process cancel led by user) The problem is that i don't know where to start from.Any helpful information(ie tutorials and suggestions) is highly appreciated. THANKS IN ADVANCE. Pascal
this might be a start http://www.biztalkgurus.com/blogs/biztalksyn/archive/2009/08/05/printmonitor-a-c-print-spooler-monitor.aspx[^] 'g'
-
this might be a start http://www.biztalkgurus.com/blogs/biztalksyn/archive/2009/08/05/printmonitor-a-c-print-spooler-monitor.aspx[^] 'g'
THANKS SO MUCH IT GAVE ME A STARTING POINT. I TRIED TO RUN IT BUT COULD NOT WORK. -WHEN SHOULD I RUN THE FORM(WHEN I SEND SOME JOB TO PRINTER OR BEFORE) AND -SHOULD THIS APPLICATION BE RUN FROM THE COMPUTER WHICH IS PHYSICALLY CONNECTED TO THE PRINTER? -ARE THERE CHANGES I NEED TO MAKE TO CUSTOMIZE THE APPLICATION IN ORDER TO SUITE MY REQUIREMENTS? ANY HELP IS APPRECIATED.THANKING YOU IN ADVANCE
-
THANKS SO MUCH IT GAVE ME A STARTING POINT. I TRIED TO RUN IT BUT COULD NOT WORK. -WHEN SHOULD I RUN THE FORM(WHEN I SEND SOME JOB TO PRINTER OR BEFORE) AND -SHOULD THIS APPLICATION BE RUN FROM THE COMPUTER WHICH IS PHYSICALLY CONNECTED TO THE PRINTER? -ARE THERE CHANGES I NEED TO MAKE TO CUSTOMIZE THE APPLICATION IN ORDER TO SUITE MY REQUIREMENTS? ANY HELP IS APPRECIATED.THANKING YOU IN ADVANCE
Im not sure if the print-monitor API runs 'across machines' .. I would build the print monitor into a dll, install it on all the machines with printers attached. The print monitor itself could connect to a centralised machine with MS-SQL installed on it to write the records of what you've captured, and include what machine wrote the log record with the number of pages etc Try these for brain food http://www.codeguru.com/cpp/w-p/printing/article.php/c5893[^] http://msdn.microsoft.com/en-us/library/ms802185.aspx[^] oh, here's some to help you get by on this forum .. STOP SHOUTING - drop the all caps replies please 'g'