Printing in Windows CE, 2.11
-
Hi there, I'm working on custom designed hardware (a measuring instrument) with a printer attached to the parallel port. (Windows CE v. 2.11) When I start printing but the printer is out of paper or off line, the system generates an error message that allows me to press 'Retry' or 'Cancel'. If I correct the problem and press 'Retry' everything works fine, but if I press 'Cancel' the instrument is no longer able to print until after a reboot. I can see that EndPage returns a negative value but I can't find a way to handle it. I have tried to Detach, CreateDC and Attach again but it doesn't help. Any help will be appreciated Thanks in advance, Jørgen
-
Hi there, I'm working on custom designed hardware (a measuring instrument) with a printer attached to the parallel port. (Windows CE v. 2.11) When I start printing but the printer is out of paper or off line, the system generates an error message that allows me to press 'Retry' or 'Cancel'. If I correct the problem and press 'Retry' everything works fine, but if I press 'Cancel' the instrument is no longer able to print until after a reboot. I can see that EndPage returns a negative value but I can't find a way to handle it. I have tried to Detach, CreateDC and Attach again but it doesn't help. Any help will be appreciated Thanks in advance, Jørgen
Hi Jorgeon, I am also facing the same problem. Got the solution ! If so please let me know. Thanks, aks
-
Hi there, I'm working on custom designed hardware (a measuring instrument) with a printer attached to the parallel port. (Windows CE v. 2.11) When I start printing but the printer is out of paper or off line, the system generates an error message that allows me to press 'Retry' or 'Cancel'. If I correct the problem and press 'Retry' everything works fine, but if I press 'Cancel' the instrument is no longer able to print until after a reboot. I can see that EndPage returns a negative value but I can't find a way to handle it. I have tried to Detach, CreateDC and Attach again but it doesn't help. Any help will be appreciated Thanks in advance, Jørgen
Hi, Do you have any sample application for accessing the PRINTER from eVC++ program.? If so please let me know in detail. Thanks, siva
-
Hi, Do you have any sample application for accessing the PRINTER from eVC++ program.? If so please let me know in detail. Thanks, siva
Hi Siva, Basically the access to the printer in CE is the same as in Windows. You can find examples in "Programming Windows" by Charles Petzold, ISBN 1-57231-995-X and/or in "Programming Windows with MFC" by Jeff Prosise, ISBN 1-57231-695-0. The procedure is almost like: StartDoc() StartPage() .. Do your printing EndPage() EndDoc() An example can be found in the online help in VCC. Search on StartPage The problem is that these functions apparently don't return an error code on failure as they probably do in Windows? If they do - I can't see them? If that won't help you, let me know what exactly you do need? Regards, Jørgen
-
Hi Siva, Basically the access to the printer in CE is the same as in Windows. You can find examples in "Programming Windows" by Charles Petzold, ISBN 1-57231-995-X and/or in "Programming Windows with MFC" by Jeff Prosise, ISBN 1-57231-695-0. The procedure is almost like: StartDoc() StartPage() .. Do your printing EndPage() EndDoc() An example can be found in the online help in VCC. Search on StartPage The problem is that these functions apparently don't return an error code on failure as they probably do in Windows? If they do - I can't see them? If that won't help you, let me know what exactly you do need? Regards, Jørgen
Hi Jørgen, Thank you ! Yeah it seems working ! I have to find another solution..that Daniel S talks about sending AT commands via IR to the printer.I am in a position to figure out all the posiblities to talk with printer and FAX. If you have any ideas/suggestion please let me know in detail. Shall certainly revert back to you if any need arises.. Thanks siva