Scalabium Software

SMReport Autogenerated
Knowledge for your independence'.
Home Delphi and C++Builder tips

#47: How can I receive a list of jobs in the MS Windows print spooler?

If you need detect how many jobs are in the MS Windows print spooler, then you must handle a WM_SPOOLERSTATUS message. When job is added or deleted in the spooler querue, this message will be broadcast.
So you must create a message handler for this message trapping:

  TyourForm = class(TForm)
    { Private declarations }
    procedure WMSpoolerStatus(var Msg: TWMSpoolerStatus);
      message WM_SPOOLERSTATUS;
    { Public declarations }


{$R *.DFM}

procedure TyourForm.WMSpoolerStatus(var Msg: TWMSpoolerStatus);
  ShowMessage('Now in the spooler a ' + IntToStr(msg.JobsLeft) + ' jobs';
  msg.Result := 0;

Published: November 26, 1999

See also
Paradox Viewer
Paradox ActiveX
Database Information Manager
SMImport suite
Word Web-stream
Protected Storage Viewer
DBExport tools
ABA Database Convert
ABA Spreadsheet Convert
Clarion Viewer

Contact to webmaster


Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2020, Scalabium Software. All rights reserved.

SMExport advertising