Questions tagged [print-spooler-api]

The API to access and manipulate a print spooler

A print spooler is a software package in an operating system that provides queueing functionality to queue documents sent to the printer to print.

A print spooler API allows a programmer to manipulate the queue of documents to be printed (a.k.a the print spool).

88 questions
0
votes
1 answer

How to read print job content using ReadPrinter method

I'd like to get content of a document sent to printing. Google said an only way to do that is to use WinAPI method ReadPrinter(). I've implemented a sketch but can't get it work. A trouble is the ReadPrinter() method always returns nothing. Please…
0
votes
1 answer

An exception occur when Calling winspool.drv GetJob function in C#

Here is my main program: class Program { static void Main(string[] args) { Printer printer = new Printer(); IntPtr printerHandle = printer.getPrinterHandle("TASKalfa 2551ci"); UInt32 jobId = printer.getJobId(); …
The KNVB
  • 3,588
  • 3
  • 29
  • 54
0
votes
1 answer

JNA - Get multiples OpenPrinter

I need a kind of help! I have to get all information of a PrintJob (the last one). The problems is: My company's computers have more then one Printer per PC. So I need to monitor more than one printer at the Spooler level. I already tried so many…
0
votes
1 answer

using SetJob function in printspooler API

I am using a getJobs function I found to get current print jobs in my printer (not print device). So far I can tell how many print jobs are in the queue of my virtual printer, and I have the information from JOB_INFO_ strucs to mess with, but I am…
ashmont
  • 25
  • 10
0
votes
0 answers

Capture printer job data stream - Windows

I will be working with a mix of networked and local printers and need to capture the actual data sent for printing going to either local or networked printers. I have looked over the print spooler api and some of it looks promising, but it seems…
In the stars
  • 253
  • 4
  • 17
0
votes
1 answer

How can I register for `IPrintAsyncNotifyCallback` from C#

I am trying to receive a callback from a v3 printer driver or port monitor, but want to do so from C#. The docs say that we should be able to just pass an object implementing IPrintAsyncNotifyCallback to RegisterForPrintAsyncNotifications, and…
Mitch
  • 21,223
  • 6
  • 63
  • 86
0
votes
0 answers

FindNextPrinterChangeNotification vs win32_printjob JobId

I'm trying to get print jobs details generated from windows (AD based) print server which is serving more than 100s of client machines. As I need to store some other details along with job details, used FindNextPrinterChangeNotification to get…
Murugan Durai
  • 143
  • 3
  • 12
0
votes
2 answers

Printer spooler api number of copies

I really could use some help, this is a question that alot of people are asking on the internet. I have different setups, tried different ways of testing, it's very frustrating. First setup: local printers local running code print from pdf or…
Condra963
  • 27
  • 5
0
votes
0 answers

Combine Printer Spooler files to better utilize paper real estate

Issue: I use FedEx's ShipRush program to batch print packing slips for daily Ebay/Amazon orders everyday. This service automates a lot as-is but doesn't utilize very much of the actual paper that the order is printed on. Each order takes up less…
user4421333
0
votes
0 answers

Get number of copies from spl file

i used the below code to get the number of copies from spl file. For windows 2008 server generated spl file, there is no SpoolerRecordTypes.SRT_DEVMODE. Private Sub SkipAHeader(ByVal Header As EMFMetaRecordHeader, ByRef SpoolBinaryReader As…
0
votes
1 answer

How to get printer category(type)?

I'm trying to get printer category such as "Fax", or "Printer" which I can see in printer property window. All I found is that I can get it from DRIVER_INFO_8, DWORD dwNeeded; LPBYTE lpDriverInfo; DWORD dwReturned; DRIVER_INFO_8 *pInfo; DWORD…
DevOvercome
  • 151
  • 1
  • 12
0
votes
2 answers

print spooler apis in delphi

I'm trying to list the jobs on a printer. I try to call enumjobs a first time to get the size of the buffer i need to pass as a parameter in a second call (as it is advised in microsoft documentation) But, when calling enumjobs, i keep getting a…
Arsnow
  • 161
  • 1
  • 13
0
votes
1 answer

Logging raw data from usb printer and using print spooler

I know similar question have been asked before like here and a few other places. but I want to ask something about the basic concepts. So, i have been assigned a project i have to make a "usb logger". The main function of the project is to capture…
Aitizazk
  • 332
  • 1
  • 4
  • 16
0
votes
1 answer

How can I change the Print Spooler filename/document name associated with wxPrintout in wxwidgets

I have managed to attach my filename to my print out by overloading the wxPrintout constructor with my chosen name. wxPrintout(const wxString& title = wxT("Printout")); In my code: VRPrintout::VRPrintout(blababala):wxPrintout(_("Heartrate")), But…
Federico
  • 89
  • 1
  • 8
0
votes
1 answer

Is it possible to create a windows service for printers?

Is it possible to create a windows service to know when a print request has been made and to know the status( Pending ,working ,completed etc.) Eg. Suppose there is an intranet .If a node computer is trying to print a document using a printer which…