J**.
code to print with .Net
Works well. This is my experience:You have to connect to your pc (usb) an ther turn it on (the printer), wait while windows installs usb drivers, after that install the driver and choose port USB001. At the end of installation don't print the test page because size of page is too large. I've bought a 58mm printer and it comes with 1 paper roll but this roll is small (or short).The cd contains the drivers, manuals and code examples but code is in Java.For .Net you can use this:public class Program{ static void Main(string[] args) { PrintDocument printer = new PrintDocument(); printer.DocumentName = "Document X" printer.PrintPage += new PrintPageEventHandler(BuildDocBeforePrint); printer.PrintController = new StandardPrintController(); PrinterSettings ps = new PrinterSettings(); ps.PrinterName = "POS58"; //name of printer on system (control panel/printers) printer.PrinterSettings = ps; printer.Print(); } public static void BuildDocBeforePrint(object sender, PrintPageEventArgs e) { float x = 1; float y = 1; // this is the max width for 58mm I found through trial and error (80mm) float width = 190.0F; float height = 0F; Font textFont = new Font("Arial", 8, FontStyle.Regular); SolidBrush brush = new SolidBrush(Color.Black); // Set format of string:center,near(left), far(right) StringFormat textCenter = new StringFormat(); textCenter.Alignment = StringAlignment.Center; StringFormat textLeft = new StringFormat(); textLeft.Alignment = StringAlignment.Near; StringFormat textRight = new StringFormat(); textRight.Alignment = StringAlignment.Far; // Draw string to screen. string text = "The title of the Invoice"; e.Graphics.DrawString(text, textFont, brush, new RectangleF(x, y, width, height), textCenter); //add a space to go to the next line y += e.Graphics.MeasureString(text, textFont).Height; text = "1 Pizzas wih Cheesse"; string price = "15.00"; e.Graphics.DrawString(text, textFont, brush, new RectangleF(x, y, width, height), textLeft); e.Graphics.DrawString(price, textFont, brush, new RectangleF(x, y, width, height), textRight); y += e.Graphics.MeasureString(text, textFont).Height; //.. }}
J**S
I am using this as part of a "Hello World" ...
I am using this as part of a "Hello World" project to learn Raspberry Pi and python. I am not really done developing/testing with it yet. It shows up as /dev/usb/lp0 on the pi - so I was able to use the escpos python library's .File method to write to the printer. They don't even document that method, but it's there and it works vs. trying to use the usb method.The test script seems to work to generate images, regular, underline, double width text .. it even generated a QR code, although I could not get the QR code to scan with my phone. That may be the fault of escpos library and not this printer.I haven't had any luck with barcodes yet. So I'm not sure it's 100% ESC/POS compatible but it will work for my low volume project and is a fraction of the cost of a real Epson. There also seems to be plenty of room inside the enclosure - so if I am careful I may be able to mount to Pi and some other components inside as well.Some of the style commands between escpos and this printer seem to have different "names", I'm still testing it. I guess you can always write your own commands directly to /dev/usb/lp0 but I wanted to abstract some of the support using a library. I may end up modifying escpos a bit to make it more compatible with this printer.
R**R
Cute receipt printer, easy to access from Windows or Linux
I got this as a cheap way to keep a paper log for a python scheduling app I'm writing for our school. 20 years ago I'd have used a dot-matrix paper with fanfold paper, but those seem to have gone the way of the dodo. 32 characters wide is plenty for my needs (timestamp + a short message).Setup is trivial; attach supplied power adapter, plug it into my computer using the supplied USB cable, and give it paper. The sample roll of paper which comes with it is tiny, so I'll be headed to the office supply store soon.It comes with a drivers disk for Windows, including Windows 7. My steps:1. Install the POS58 driver. Let it install on LPT1. Yaay, there's a printer.2. Then change the printer port to USB.3. At this point, I can print to it from WordPad. Just make sure to set the margins to 0".4. Since I want to send text directly, in printer properties set it to use soft font (and don't beep, and no cash register drawer, and feed 3mm after each print job).5. Use python with the pywin32 library. Here's how much code it takes:p = win32print.OpenPrinter("POS58")win32print.StartDocPrinter(p, 1, ("TestJob", None, None))win32print.WritePrinter(p, "Testing 1 2 3\n")win32print.EndDocPrinter(p)On linux, it's even simpler (no surprise).1. The printer uses a WinBond CDC USB chip, so linux mounts it automatically as /dev/usb/lp0.2. $ sudo chmod a+rw /dev/usb/lp03. $ echo 'Testing 1 2 3' > /dev/usb/lp0And now I'm happily printing.
S**Y
Exactly what I expected.
I know that many wrote reviews saying it had problems... I know because I read them. I am attaching pictures. I buy alot from amazon and rely on the reviews heavily at times. I am taking the time to write this so others will have the knowledge as well:Short version - It is a 58mm 2.25" thermal receipt printer, much like what prints a CC receipt. I am using windows 7 and had next to no problems installing and working.Hookup the unit, but DO NOT TURN IT ON.Install the print driver software labeled on the disk as POS58 (assuming 58mm) and when it ask you to select the PORT - use the drop down list and I choose the USB001 port.Before I hit next, I then turned on the printer, which was connected, and hit next. Loaded successful. Then went to the Printers list in the Start Menu - Choose the POS58 properties - Print test page and there you have it.Prints well, and works just as I hoped.
Trustpilot
1 day ago
2 weeks ago