Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Apr : Printer Delete Document Delay

www.cryer.info
Managed Newsgroup Archive

Printer Delete Document Delay

Subject:Printer Delete Document Delay
Posted by:"Roger Lascelles" (rogerlasatoptusnet.com.au)
Date:Fri, 21 Apr 2006 10:01:48 +1000

When I open the Windows Printer and Faxes panel and cancel all the print
jobs for a printer, there is a delay of about 90 seconds while status shows
"deleting" then the jobs disappear from the list.  This is for a local
printer which is offline and so never received a single byte.

I can delete all jobs with this code, and get the same 90 second delay:

if not SetPrinter( FHandle, 0, nil, PRINTER_CONTROL_PURGE ) then begin
    RaiseLastWin32Error;
end;

Does anyone know how to reduce the 90 sec delay, perhaps through a registry
or printer setting or API?  I recall similar delays on Win95 thru XP.

Roger Lascelles

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive