Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.12.12;
Скачать: CL | DM;

Вниз

Глюк при постановке в очередь печати.   Найти похожие ветки 

 
Artemius ©   (2004-10-26 10:22) [0]

Доброго денечка! Такое дело: написал програмку, которая регистрирует отправку пользователем на печать чего-либо. На Windows 98, 2000, Ме все пучком. А вот на XP... 8-( Такое ощущение, что событие постановки на печать просто не генерится!!! 8-))) Может, кто сталкивался? Вот код:
......
procedure WM_SpoolerStatus(var Msg : TWMSPOOLERSTATUS); message WM_SPOOLERSTATUS;
......
procedure TForm1.WM_SpoolerStatus(var Msg : TWMSPOOLERSTATUS);
begin
// мы поймали факт изменения очереди печати
// пусть себе печатает... пока :)
msg.Result := 0;
// просто зарегистрируем факт
EnumActiveJobs;
end;
......


 
simpson ©   (2004-10-26 14:24) [1]

Взято из MSDN:

Remarks
This message is for informational purposes only. This message is advisory and does not have guaranteed delivery semantics.Applications should not assume that they will receive a WM_SPOOLERSTATUS message for every change in spooler status.

Note The WM_SPOOLERSTATUS message is not supported after Windows XP. To be notified of changes to the print queue status, use FindFirstPrinterChangeNotification and FindNextPrinterChangeNotification. The following code outlines how this might be done.



Страницы: 1 вся ветка

Текущий архив: 2004.12.12;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.024 c
1-1101552689
ККК
2004-11-27 13:51
2004.12.12
TStringList


1-1101887251
Майя
2004-12-01 10:47
2004.12.12
Закрытие OLe объекта


1-1101585715
GanibalLector
2004-11-27 23:01
2004.12.12
C: Windows Шаблоны Normal.dot


3-1100503294
denis24
2004-11-15 10:21
2004.12.12
Tdbimage


9-1091707720
SwitchBlade
2004-08-05 16:08
2004.12.12
Есть ли DelphiX для Delphi 8?