EngWritePrinter ERROR_INVALID_HANDLE

Status
Not open for further replies.

MotoFreak

Newbie level 1
Joined
Aug 29, 2005
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,290
Everytime when i try to print something with calling of EngWritePrinter, i get this error message (ERROR_INVALID_HANDLE), i am using DrvEnablePDEV function's hDriver parameter value as first parameter of EngWritePrinter. What do u say?

Could i simply use my printer driver with microsoft supplied print processor and port, i thought that i simply call EngWritePrinter and send all nfo to the spooler and the last part of this work spooler realize itself, right?

Should i take care about the specific code of the printer (when the spooler calls DrvStartPage or DrvSendPage or DrvStartDoc or DrvEndDoc )or the print processor takes care of it?

Another problem i've encountered was in Word editor, everytime when i tried to choose my printer in the print window ( ctrl+p ), i got the message of out of memory, why was that?

Im using WinXp sp2.

Thanks in advance,
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…