Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Printing in Windows CE, 2.11

Printing in Windows CE, 2.11

Scheduled Pinned Locked Moved Mobile
helphardware
5 Posts 2 Posters 8 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jorgen Belfalas
    wrote on last edited by
    #1

    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

    A 2 Replies Last reply
    0
    • J Jorgen Belfalas

      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

      A Offline
      A Offline
      AKSIVAKUMAR
      wrote on last edited by
      #2

      Hi Jorgeon, I am also facing the same problem. Got the solution ! If so please let me know. Thanks, aks

      1 Reply Last reply
      0
      • J Jorgen Belfalas

        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

        A Offline
        A Offline
        AKSIVAKUMAR
        wrote on last edited by
        #3

        Hi, Do you have any sample application for accessing the PRINTER from eVC++ program.? If so please let me know in detail. Thanks, siva

        J 1 Reply Last reply
        0
        • A AKSIVAKUMAR

          Hi, Do you have any sample application for accessing the PRINTER from eVC++ program.? If so please let me know in detail. Thanks, siva

          J Offline
          J Offline
          Jorgen Belfalas
          wrote on last edited by
          #4

          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

          A 1 Reply Last reply
          0
          • J Jorgen Belfalas

            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

            A Offline
            A Offline
            AKSIVAKUMAR
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups