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

how Send File To Printer faster in winform in vb.net

I tried to print but the result of the printing status did not print immediately and the print time was approximately 10-12 seconds whether there is a solution so that it can be printed immediately or there is a need to be in the settings on my…
roy
  • 693
  • 2
  • 11
0
votes
0 answers

how to auto detect printer data update and without event button in vb.net

how to auto detect printer data update and without event button. and if I use the event button and I continue to process it once again then the process cannot be done because it is used by other processes such as the screenshot I attached…
roy
  • 693
  • 2
  • 11
0
votes
0 answers

Batch printing multiple PDFs in Python

Good afternoon everyone. This is my first post on StackOverflow so please be clement in case I miss some information, or break any of the rules. I'm trying to write a script in Python in the form of a def class, that prints hardcopies for all PDF…
0
votes
0 answers

DocumentProperties not updating the print job with new DEVMODE structure

I am trying to update a print job with a new property set to the printer's DEVMODE structure in my C# win forms application. Specifically, the tray to print to. [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] …
Maddy
  • 13
  • 5
0
votes
1 answer

How to save as PDF while printing a document on actual printer

I am trying to find a generalized solution on how to save the document as PDF while giving print on my actual printer on Windows 7/10 OS. Scenario: Whatever I am printing whether an image or a file or from the third party app like POS or Screen…
0
votes
0 answers

Starting external .exe when XPS Writer has finished

I wrote a XPS Driver using the XPS Driver Sample XPS Driver Sample What I want to do now is, that I need to start an external programm when the XPS Driver has finished its job and the document is ready. So the user should click "print with... ->…
0
votes
1 answer

How to reduce print spool file size

I have a pdf files of size 13.1MB. When print with Acrobat Reader DC, the size of the spool file is 105MB. However, when I try to programatically print with PdfiumViewer, the spool file size become over 500MB and eventually crash the program due to…
Noctis Tong
  • 459
  • 1
  • 7
  • 17
0
votes
1 answer

why are the extended properties lost if printing to prn file

if printing direct to printer, all the extended properties of printer setup dialog will work, f.e. stapling, scaling to 50 % or make a watermark on the document. they are very important for the printer finisher to work as expected. But if I first…
minimix
  • 11
  • 3
0
votes
1 answer

How to determine value of DM_OUT_BUFFER in C#

I am printing the output of a text box in C#. To do that, I use raw printing. However, before sending the text to print using WritePrinter [DllImport("winspool.Drv", EntryPoint = "WritePrinter", SetLastError = true, ExactSpelling = true,…
octopusgrabbus
  • 10,555
  • 15
  • 68
  • 131
0
votes
0 answers

Capture and block print request in Windows

I would like to capture printer job request, check what is the source document and reject the print request if it's coming from a browser (chrome, IE, Firefox). I tried using Windows Spooler API, FindFirstPrinterChangeNotification and…
Jude Aloysius
  • 131
  • 1
  • 14
0
votes
1 answer

C++ Port Monitor (mfilemon.dll) RDP Virtual Channel code not executing

I recently started working with open source mfilemon.dll and trying to add additional features to it. The feature I am adding is to transmit data over a virtual channel. I wrote a small console exe to test the code and what I have below successfully…
David Bentley
  • 824
  • 1
  • 8
  • 27
0
votes
1 answer

Yes/No Dialog on every page the printer will print

I'm doing this in a printer server. I am trying to make a program that will show up a Yes/No dialog box before proceeding to print a page printed by any application or from the network. So far, it was easy to pause and resume a job. But haven't…
exp101t
  • 33
  • 3
0
votes
0 answers

Print Spool - Save Document to File

My users print files (PDF,docx etc...) in apps like word, excel or e.g ERP Systems from different printers on there Computers. I need to copy this files to a specific folder to save them in a storage. This is my current code. using…
Cazzador
  • 33
  • 2
  • 9
0
votes
0 answers

Does Marshal.PtrToStringAnsi not working in windows service?

I have written a dll which call windows spooler api to get printer name and printer driver name, it works fine in console application. However, I got nothing when I call the dll in windows services application. Here is my dll source code(i.e.…
The KNVB
  • 3,588
  • 3
  • 29
  • 54
0
votes
1 answer

XcvData with GetConfigInfo fails

I'm trying to read printer port configuration using XcvData but it fails with error 87 (invalid parameter). I have no problem adding a port or setting port configuration. I've seen some c# code samples that do exactly what I do so I'm not sure what…
bdristan
  • 1,048
  • 1
  • 12
  • 36