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
2
votes
1 answer

Capture lab measurements as they are sent to printer

I have a lab instrument from the late 1980's that has a printer as its sole storable data output (it gives you the readout on the screen in real time but does not save it to memory, as it has none, you can just view the last measured data point).The…
Abipin
  • 29
  • 1
2
votes
2 answers

FindNextPrinterChangeNotification returns NULL for ppPrinterNotifyInfo

I'm stuck on problem were I would like to ask for some help: I have the task to print some files of different types using ShellExecuteEx with the "print" verb and need to guarantee print order of all files. Therefore I use…
Thorsten Schöning
  • 3,501
  • 2
  • 25
  • 46
1
vote
1 answer

Is there a way to get the full path of a printed file in windows?

I am attempting to find the original file that is being printed. I am aware that there is an SPL file stored in C:\Windows\System32\spool\PRINTERS that triggers the print job, but I would like to find the file used to create this spool file. Is…
1
vote
1 answer

Checking print job status with Winspool Drv

recently I was testing printing using winspool drv and I managed to be able to print successfully through a string (extracted from prn file). Now I want to check the status of my print job. I have read the winspool api documentation but there isn't…
tbx1
  • 11
  • 3
1
vote
1 answer

GETJob() Win32 Print spooler api 64bit The parameter is incorrect, how to fix?

Im trying to make getJob() working from printerspooler api in 64bit. I use the following definition (as other people are using on SO) [DllImport("winspool.drv", EntryPoint = "GetJob", SetLastError = true, CharSet = CharSet.Auto, ExactSpelling =…
Joel Harkes
  • 10,975
  • 3
  • 46
  • 65
1
vote
1 answer

When job is printed, last job status is JOB_STATUS_PAUSED, instead of JOB_STATUS_PRINTED

I poll printer queue on any change like JOB_CHANGE, and if I see that some job disappeared, I report to server that job has been printed or deleted, according to job last status. Problem is that the printer Kyocera M3550 returns as the last status…
SyndicatorBBB
  • 1,757
  • 2
  • 26
  • 44
1
vote
1 answer

Monitoring a print job using Print Spooler API

I am trying to get some data of a print job using Print Spooler API in C#. To do that, I used following code snippet. (error handlings are removed) public static int GetJobInfo(string printerUncName, int jobId) { var printerInfo2 = new…
user3079364
  • 171
  • 1
  • 19
1
vote
1 answer

Rerouting print job to another print device

I am trying to use the printspoolerapi to take a print job and reroute it to another printer. So far I believe i have captured the information required through enumjobs, but when setting the print job to another printer I get an empty sheet printed…
ashmont
  • 25
  • 10
1
vote
1 answer

How to programmatically get all printer models for a given manufacturer on windows?

I'm trying to enumerate printer models for a given manufacturer. Windows 'Add Printer' is somehow able to do that - i.e. when a manufacturer is selected in the left list a list of printer models is displayed on the right side. I'm familiar with…
bdristan
  • 1,048
  • 1
  • 12
  • 36
1
vote
1 answer

Parse and Display ESC/POS file in windows

I am trying to parse an ESC/POS file which is created by the POS Printer Driver and display it on windows. Unfortunately I couldn't find any parser / renderer for that and I've been researching this for 2 weeks now. All the existing solutions are…
1
vote
0 answers

Print Spooler has stopped in PrintManager

I am using PrintManager(when webview is loaded) as follow: PrintManager printManager = (PrintManager) getSystemService(Context.PRINT_SERVICE); PrintDocumentAdapter printAdapter =…
Ajit
  • 724
  • 7
  • 16
1
vote
2 answers

How to pause the Win32_printJob by Printername and JobID

TASK When user print the document ,pause the pop will appear then fill the form click enter the form will closed and job has been resumed. We have 50 Network Printers , 2000 Client Machine and one print server. EACH CLIENT had 3 or 4…
1
vote
2 answers

Adding control data to plain text print job

Sorry for the long winded question, I've spent a few days trying to figure this out and have so far found dozens of ways not to solve my problem. I'm currently trying to use a Datamax O'Neill E Class Mark 3 printer to print some labels. The java…
CJPCNZ
  • 23
  • 6
1
vote
1 answer

Printing a PCL file in Windows Server 2012 R2 using C#

Is there something specific about Windows Server 2012 R2 that stops a PCL file from being printed using the method below? I used a code I found online to generate a dll file from the url below (you might to scroll a little down to see the answer…
1
vote
1 answer

DeviceCapabilities generates error: data is invalid

I want to get a printer's list of paper source, paper size, etc. I slightly modified the codes from http://www.pinvoke.net/default.aspx/Enums/DeviceCapabilities.html?diff=y The codes sometimes work, sometimes not. The proplem is…
peter
  • 1,009
  • 3
  • 15
  • 23