Printing question
-
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...
-
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...
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