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. General Programming
  3. C / C++ / MFC
  4. Printing question

Printing question

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestiongraphics
2 Posts 2 Posters 0 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.
  • P Offline
    P Offline
    Peter Mares
    wrote on last edited by
    #1

    Hey everyone, I'm busy working on a mini POS system, and they have an Epson LX400 printer that they use to print till slips. They feed a 7.5cm wide roll of paper through for the till slip. The problem arises when I use GDI printing and call EndPage(), the printer feeds the equivalent of an A4 page upwards. I've tried modifying the DEVMODE structure before I call CreateDC() but nothing works. How do I stop the printer from form feeding? The software needs to run on Win98, so I can't use AddForm(), GetForm() etc. Any ideas? Regards, Peter PS If I use standard fopen and fprintf functionality, everything is fine, but then I can't get the client's logo onto the slip, so thats not an option.


    controlSHIFT [Glossary Manager] [AfterThought Backup Lite] 99 little bugs in the code, 99 little bugs, Fix 1 bug, recompile.... 101 little bugs in the code...

    S 1 Reply Last reply
    0
    • P Peter Mares

      Hey everyone, I'm busy working on a mini POS system, and they have an Epson LX400 printer that they use to print till slips. They feed a 7.5cm wide roll of paper through for the till slip. The problem arises when I use GDI printing and call EndPage(), the printer feeds the equivalent of an A4 page upwards. I've tried modifying the DEVMODE structure before I call CreateDC() but nothing works. How do I stop the printer from form feeding? The software needs to run on Win98, so I can't use AddForm(), GetForm() etc. Any ideas? Regards, Peter PS If I use standard fopen and fprintf functionality, everything is fine, but then I can't get the client's logo onto the slip, so thats not an option.


      controlSHIFT [Glossary Manager] [AfterThought Backup Lite] 99 little bugs in the code, 99 little bugs, Fix 1 bug, recompile.... 101 little bugs in the code...

      S Offline
      S Offline
      Steve S
      wrote on last edited by
      #2

      Peter You say you've tried modifying DEVMODE, presumably this is to set a custom form size, by setting dmPaperSize to zero, and setting dmPaperLength and dmPaperWidth ? If so, are you setting DM_PAPERSIZE|DM_PAPERWIDTH|DM_PAPERLENGTH in dmFields ? Your other alternative is to get the logo onto the slip; I'm assuming the logo is monochrome (not sure if it's safe to use the B and W words these days), and you have a bitmap of it. AFAICR, you can do limited graphics printing with an LX series by sending escape sequences. You might be able to do a generalised PrintBitMap method for yourself instead. It sounds painful, but might be easier than trying to figure out what's wrong with the GDI version. Steve S

      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