|
|
Subject:
Send Cut Command to Star SP300 printer
Category: Computers > Programming Asked by: emiliodabdoub-ga List Price: $40.00 |
Posted:
20 Sep 2004 22:20 PDT
Expires: 22 Sep 2004 14:32 PDT Question ID: 404080 |
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: http://return.no-ip.org/n54/index49/1013655327.html http://www.starmicronics.com/printers/printers_pages/support/programming.html Also download the Developer guides from starmicronics.com to see a complete code reference. |
|
There is no answer at this time. |
|
Subject:
Re: Send Cut Command to Star SP300 printer
From: xok-ga on 22 Sep 2004 13:05 PDT |
Hello, It might be like Epson Auto-Cutter, in Epson TM88IIP, if I am not wrong you can use ESC c 14(ASCII) or 1B 63 31 4 (HEX) to cut the paper. 1 - You can also send the commands directly to the printer, as if you were opening a file. 2 - The printer also might have a property with auto-cutter depending on the paper style. This can be defined in the Control Panel, on the printer properties. Regards, Roberto |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |