Вниз
Скачать: CL | DM;

Нужен пример печати на матричный принтер по сети   Найти похожие ветки 

← →
DmiSb   (2006-04-19 14:18) [0]

На локальный принтер очень хорошо печатается следующим образом:

var
 Handle: THandle;
 N: DWORD;
 DocInfo1: TDocInfo1;
begin
 OpenPrinter(PChar(PrinterName), Handle, nil);
 with DocInfo1 do begin
   pDocName := PChar("test doc");
   pOutputFile := nil;
   pDataType := "RAW";
 end;
 StartDocPrinter(Handle, 1, @DocInfo1);
 StartPagePrinter(Handle);
 ....
 WritePrinter(Handle, PChar(S), Length(S), N);
 ....
 EndPagePrinter(Handle);
 EndDocPrinter(Handle);
 ClosePrinter(Handle);

Но на сетевой расшаренный принтер так почемуто не печатает.


← →
Slym ©   (2006-04-21 13:47) [1]

hfile:=CreateFile("\\Server\printer",...);
WriteFile(hfile, PChar(S), Length(S),...);
CloseFile(hfile);



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

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.024 c
2-1153539186
Батя
2006-07-22 07:33
2006.08.13
Фотоапарат


3-1149855807
Vitus
2006-06-09 16:23
2006.08.13
работа с Ole объектами


3-1149512548
Still Swamp
2006-06-05 17:02
2006.08.13
Access Violation в IBQuery.Prepare


15-1153287680
KygECHuK
2006-07-19 09:41
2006.08.13
Где найти словар?


2-1153736526
Frojok
2006-07-24 14:22
2006.08.13
Закрыть приложение




   Наверх