LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

stop printing by CVI

I want to stop a print in progress by CVI under certain conditions. May I send a message to O.S. (e.g. WIN2000) to stop a printer or a plotter?
0 Kudos
Message 1 of 2
(2,842 Views)
If you have the MS Platform SDK, do a search for
"Printing and Print Spooler Functions".

Then check the "AbortDoc"function (stops the current print job and erases everything drawn since the last call to the StartDoc function).

Requirements
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Wingdi.h; include Windows.h.
Library: Use Gdi32.lib.


Chris
Message 2 of 2
(2,842 Views)