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
0 answers

Retrieve actual printer queue

The printer is a Network printer. Actually a normal printer connected using Ethernet. It's somehow acting as a printer server by itself. All documents sent to this printer disappear from the local queue instantaneously. I need a (somewhat) reliable…
Bigger
  • 1,807
  • 3
  • 18
  • 28
0
votes
0 answers

How do I programmatically disable the "Use Printer Offline" menu option in the print spooler?

In the print spooler dialog for any installed printer, there is a menu option to use the printer offline. Enabling this option means that all documents will be queued until the said printer comes online. The option I'm talking about: I do not want…
Anish Ramaswamy
  • 2,326
  • 3
  • 32
  • 63
0
votes
1 answer

Getting IPAddress with XcvData

I am needing to get the ip of the printer but am not having much success. Already tried in various ways. Currently my code is like this: void Spl::GetIpAddress(LPSTR printerName) { HANDLE hPrinter; PBYTE wAddress = NULL; DWORD…
msantiago
  • 346
  • 2
  • 4
  • 14
0
votes
0 answers

Getting SPL file with jobID

I am developing a print monitor in c++. But I'm having trouble getting the file SPL. After much research I discovered that I had to insert the path of the folder where you store the .spl files in spoolerDirectory…
msantiago
  • 346
  • 2
  • 4
  • 14
0
votes
1 answer

PagesPrinted field of job_info_2 not reliable for hp printers on windows 7, value depends on print processor

PagesPrinted field of job_info_2 not reliable for hp printers on windows 7, value depends on print processor I'm developping a print monitor, and for hp printer PagesPrinted is not reliable et has wrong values
cheksah
  • 3
  • 5
0
votes
1 answer

How to reprint a spool file using XPS printer?

I am building a program to capture printed documents and then convert these documents to xps\image. Currently i am using FileSystemWatcher to monitor the directory "C:\Windows\System32\spool\PRINTERS\" and copy the spl files, make sure its not…
Mahmoud Darwish
  • 1,168
  • 1
  • 15
  • 28
0
votes
1 answer

I'm getting duplicated print Job on windows 7 client machine for shared printer

I'm having a pb with print Jobs for shared printer I' have a printer shared on win server 2008 And I'm using this printer from windows 7 client machine I'm developping an application that writes all printer notifications for all print Jobs And for…
0
votes
2 answers

Why do I get ERROR_ACCESS_DENIED attempting to open a specific job using OpenPrinter?

According to undocprint given a job ID it should be possible to retrieve the spool file for the job using OpenPrinter and ReadPrinter by opening the printer using a string with format "PrinterName,Job xxxx". The MSDN documentation lists this method…
Redwood
  • 66,744
  • 41
  • 126
  • 187
-1
votes
1 answer

Get number of printed pages using C# (system-wide)

I have been on this for almost 2 days, and I haven't accomplish anything!! I have been assigned to write a program to count number of pages printed on windows OS. As far as I know, I need to intercept printing events and count them internally. which…
dariush
  • 3,191
  • 3
  • 24
  • 43
-1
votes
1 answer

Getting printer used by default by a process

I need to print documents in a specific order. To do that,i use shellExecute api to print documents. Some documents may be quicker to print , so i have to wait for the document to be in the spooler before calling another shellExecute. For that, i…
Arsnow
  • 161
  • 1
  • 13
-1
votes
1 answer

How to process EMR_FORCEUFIMAPPING and EMR_GDICOMMENT?

I am converting EMF to PDF, but I went into a problematic field. I have some EMF spool files, which contain some undocumented EMR structures such as EMR_FORCEUFIMAPPING and EMR_GDICOMMENT. The MSDN is not so descriptive about these records, so…
Robert
  • 53
  • 1
  • 6
-2
votes
1 answer

the given path's format is not supported in vb.net

I use ESC/P or Epson Standard Code for Printers which aims to make bold. But I found there was an error "the given path's format is not supported". Is there a best solution? Thanks the given path's format is not supported Dim ESC As String =…
roy
  • 693
  • 2
  • 11
-3
votes
1 answer

Thermal printer Driver In windows

I am new to windows driver development, now i am developing Driver for our own thermal printer. So learn some Printer driver basics From MSDN (WDK source). Now i am printing with Generic TEXT/ONLY mode in windows .but i need to integrate my printer…
Mr.Cool
  • 1,525
  • 10
  • 32
  • 51
1 2 3 4 5
6