From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

flush a printer waiting list programmaticaly

hello. My labview application is working with a printer fot label creation. The printer is recognised in the peripheral and printers menu and has a normal waiting list (right click and select "display current printing work"

 

do you know it it is possible to erase this impression waiting list programmaticaly?

 

thanks for your help

Pierre FCentum TNS, Grenoble
Certified LabVIEW Associated Developer
0 Kudos
Message 1 of 3
(2,522 Views)

maybe with a cmd


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 3
(2,516 Views)

Here is an old batch file I've used to kill the print spooler. You should be able to run this and flush everything.

 

@echo off
cls
net stop spooler
del %systemroot%\system32\spool\*.spl
del %systemroot%\system32\spool\*.shd
net start spooler

Glad to answer questions. Thanks for any KUDOS or marked solutions 😉
0 Kudos
Message 3 of 3
(2,480 Views)