USB POS Printer
I have the Point Of Sale app that was using COM and LPT ports to print on POS printers so far, but now I need to start with USB printers that seem to be more modern...
What general direction should I take? Should I just print as I do on regular A4 printers, just don't show PrintDialog using PD_RETURNDEFAULT and make the layout a bit narrower so it fits on the printer?
What about the paper length? Should I just print for as long as I need or do I need to check the height of the page with GetDeviceCaps() or something?
Or maybe do I need to call first EnumPrinters() and find out sutable printer on my own so users can keep default priner set on some A4 usb or network printer used for normal printing?
Is your new USB POS printer an actual A4 printer, or is it still a traditional "roll" printer on narrow paper, but just happens to have USB rather than serial.
Oh...that "POS"...I thought you meant something else ;)
Yes, "endless" roll printer but now everybody seem to prefer usb connection since new computers come without serial/parallel ports.
Originally Posted by Salem
Start with the manufacturers website, read some specs, download some drivers and API's, and start practising.
Originally Posted by Salem
Ha, Ha! Thanks. The thing is my customers already installed that printer with its drivers so they can print to it from any Windows application, even from mine. The POS module in my app supports two types of printing: over the com/lpt ports, plain text, 40 characters in the line or the second way, standard windows printing, full A4 page(s).
The thing is, my standard A4 (or Letter format if you will) print is too wide for the paper size supported on this printer, plus it shows the standard Print dialog and I think this dialog is not usually displayed when people print to POS printers.
My question was, what is the practice with these types of printers. What are others doing. Am I supposed to somehow enter text only mode or just shrink the layout of my standard printing and go full graphics. Should I rely on the default printer setting on the computer or should I find POS printer on my own somehow - with EnumPrinters() call or something? What about the Print dialog?
I just wonder if there's anyone here that was working with similar printer in a Point Of Sale setting.
My other problem is that I have the flu and I can't go over there and experiment with the printer. My customers bought the printer today and the idea is to start working on the whole thing now so when I go there next week I can finish everything on my notebook in as little time as possible and be done with it.
This is probably out of date by now, but might be of use...