|
From: tacc <tac...@ya...> - 2000-12-13 13:52:19
|
I can't print out by WinAPI to a remote printer.
C:\Windows\win.ini[windows]section is
device=Canon LBP-930 LIPS4,LIPS4,10.241.25.30:lp
#include<windows.h>
int main(){HDC hdc;static DOCINFO doc;
hdc=CreateDC("LIPS4","Canon LBP-930 LIPS","10.241.25.30:lp",NULL);
doc.cbSize=sizeof(DOCINFO);
doc.lpszDocName="MyDoc";
StartDoc(hdc,&doc);
StartPage(hdc);
TextOut(hdc,50,50,"TEST",4);
EndDoc(hdc);
EndPage(hdc);
DeleteDC(hdc);
return(0);
}
Please point out where to modify.
Thanks,
tac...@ya...
_________________________________________________________
DO YOU YAHOO!?
Chat with your friends --> http://chat.yahoo.co.jp
|