I'm sending request to a printer using Epson Emulation. I'm using C# RawPrintHelper
defined as here.
I want to make absolutely sure I am on the very first position (first line, first character) before I start printing. So I send the following requests to the printer:
// initialize printer
RawPrinterHelper.SendStringToPrinter(this.PrinterName, (char)0x1B + "@");
// eject paper to force re-alignment...
RawPrinterHelper.SendStringToPrinter(this.PrinterName, "" + (char)0x1B + (char)25 + (char)85);
// form feed...
RawPrinterHelper.SendStringToPrinter(this.PrinterName, "" + (char)0x1B + (char)0x0C);
// make sure we're at start of page !
RawPrinterHelper.SendStringToPrinter(this.PrinterName, (char)0x1B + "$" + (char)0x00 + (char)0x00);
The paper actually does roll-back, but then return to the initial position (line on previous print). Even the form feed call didn't help.
The goal is to get back at the top of the page, ideally without waisting a full page...