I have a Star Micronics SP300 (POS) printer. It is installed as a
windows printer with Generic Text Only drivers. I'm using RawPrinter
Helper Class to
send data to the printer. See: http://support.microsoft.com/?id=322090
. It works correctly printing the text.
My only problem is that this printer has an AutoCuter feature (to cut
the ticket paper) but to make it work, I have to send a special code
to the printer.
I tried using the SendStringToPrinter method from the
rawprinteerhelper class (VB.NET), but it did not work.
I need to make this printer cut the paper under VB.NET (with
the printer installed under windows).
One problem is that this printer is serial (COM1) so, I cannot just
open the port and send the data because when it is installed as a
printer, the com1 is under exclusive access by windows. And also the
OPOS driver that has a function to send the cut command does not work
if the printer is installed in windows.
I think that a solution would be to use SendBytesToPrinter from
Rawprinterhelper class, but I just dont know how this function works.
A few Reference URL's you can find useful:
Also download the Developer guides from starmicronics.com to see a
complete code reference.