I would like to use POS with my custom printer. So the form of the bill /invoice is formated for a small printer. I would like to print on normal A4 paper. how can I edit the settings of the outgoing printing in POS?
Usually POS requires COM device to print. You should read the printer programming manual to see how to call the command. If USB, you should use the vendor's USB library.
Related
I'm trying to test code that sends a printing message to an iMZ320 printer. The printer takes instructions in the CPCL programming language. I don't have access to a printer I can print to, but I need to check some changes I have made to the printer code are formatting correctly. Is there any way to do that to test the code is displaying correctly?
Unfortunately the answer is no. Without access to the printer you cannot preview the changes. Online tools like Labelary are only compatible with ZPL. In practice, I find that even when I'm generating code from a WYSIWYG tool like Zdesigner, I always need to test and fine tune on an actual printer.
What i want is
Design a label layout(barcode on it).
Scan the information by handheld and print the label directly from mobile printer linked with bluetooth.
want to know:
best way to implement this? see my preferences list below
1) free of charge
2) the API should have 2D barcode support
3) label layout can be designed by Drag-and-drop. The best is a visual studio control. so we do not need too much coding.
Hope someone has experience can share some to me, what cotrol? what liberary? Must use zebra specific printing language?
Kindly show a technique chain of the best(easy, free). Thank you all.
You should try and go with the Zebra SDK (for windows ce too). I assume there is no drag and drop GUI designer tool. But you may examine the code generated by a label designer application printing to a zebra printer using file: as output port.
Zebra provides good SDKs, samples and support. For example to print a QR code:
^XA^FO100,100^BQN,2,10^FDYourTextHere^FS^XZ
You see, it is more or less readable where to replace text to get another QR barcode.
see also https://km.zebra.com/kb/index?page=content&channel=SAMPLE_CODE
You may need to study the ZPL programmers guide and then you can start to print your own mind-designed labels. Printing meeans to send ZPL code lines directly to the printer.
I have a piece of equipment from the late 1980s. It outputs text and graphics directly to dot matrix and Laserjet III printers. These are starting to be harder to find. I would like to implement a solution which allows me to connect to the computer and "print" to it (a piece of software) then print it to a modern printer or .pdf file. I can't locate the piece of software that would accept the input of the device and emulate an old printer. Any solutions??? Thanks for any help. I know this isn't exactly what most of you do, but I'm hoping someone has had need of something similar in their experience.
It already exists. It's called PrintCapture and sells for US$97.00. You will need the necessary interface hardware as well, depending on which type of printer port the device has; they list some of those devices on their web site under the "Details" section.
I have a client asking if their web application (PHP) can easily print to a UPS / Fedex thermal label printer.
So for instance, I can get back a PDF from UPS/Fedex with the shipping label. I just need to print that.
Does anyone know if you can print directly to these printers or, if not, if there's another way to do it?
EDIT: To clarify, all I want to accomplish is to be able to print to these printers, without having to make my client ALT-TAB to some third-party application like UPS Worldship or ShipRush or QuickBooks Shipping Manager and clicking 'Print' within that application. Do-able?
Getting the labels in correct format
The FedEx & UPS APIs provide options to get thermal label specific types. You will beat your head on the keyboard trying to get PDFs to print properly on thermal printers.
Some common thermal types EPL/EPL2, ZPL/ZPLII. Most thermal printers will accept documents matching one of these types.
For Fedex something like this in your ShipRequest - This is using the FedEx WSDL for shipping.
RequestedShipment.LabelSpecification.ImageType = FedExShipService.LabelSpecificationImageType.ZPLII
And UPS - Building XML to post to the UPS service.
<LabelSpecification>
<LabelPrintMethod>
EPL2
</LabelPrintMethod>
</LabelSpecification>
Printing the labels
You will need to essentially send "raw" data to the printer. I started with this article and adopted it to my solution. FedEx for example returns a byte array which contains the label information - I convert this to a string and then send to the printer.
'Convert from Byte Array to String
Dim enc As System.Text.ASCIIEncoding = New System.Text.ASCIIEncoding()
Dim strConverter As String = enc.GetString(<ByteArrayFromFedEx>)
http://www.paulaspinall.com/post/2008/05/31/Sending-data-direct-to-a-printer.aspx
There is also another thread on SO about this topic.
Sending raw data to FedEx Label printer
I used to work on UPS shipping systems and yes you can print using the thermal printers. You need the correct drivers installed to do this. Depending how you want to print will also determine how you need to install the printer (local or shared printer). HTH
Your best source of information on how to print will come from the printer manufacturors web sites. I have referred to this article in the past when developing solutions for customers that consume the UPS API's.
Sending Raw EPL2 Directly to a Zebra LP2844 via C#".
This blog post goes into good detail about printing labels from code. Dn't be scared off because it has C# in it's title.
The manufacturers do an okay job of providing the information you need.
Shiprush has an api you can use to generate labels from code. It is pretty flexible, and can either send the label to a printer or return the label to your code for you to handle.
This open source applet would allow you to print from PHP. I personally stay away from Java but it may do the trick.
http://code.google.com/p/jzebra/
You will not be able to print the carrier PDF to the device, however you can take the raw EPL/ZPL code from the carrier and have that sent to the printer.
There is an ActiveX control from UPS that you can install. If you return the EPL stream with a MIME type of application/epl2 the ActiveX control will take the data and send it to the thermal printer.
Google "ups thermal activex"
I need to develop a small delphi app that prints stickers (text + graphics) to label printer such as DYMO one by one.
What is best way to do this, is there e.g. some custom API for DYMO printers or how to print color graphics to small stickers?
The label printer may have a normal Windows printer driver.
If that is the case you can print simply with something like this:
Printer.BeginDoc;
Printer.Canvas.TextOut(10, 10, 'Hello label');
Printer.EndDoc;
Have a look on this dymo.com page for a Dymo SDK you can download.
We've been printing to Zebra label printers for years through standard printing functionality. We actually create a report (QuickReport) and send it to the printer using the basic Print command.
The ability to print color is going to depend on the facilities of your printer. For example, the Zebra printers that we use are thermal transfer ribbon printers which means that there is only one color possible.
I've used plain old Printer.Canvas from the Printers unit to write to DYMO label printers, with labels printing OK.
As Scott W suggested using the Windows printer drivers, is the easiest way to output labels to a printer, and your software can be used with other label printers.
You just need to create a page with the correct label size, using QuickReports, Rave or any other reporting components.
You can download drivers from DYMO direct. For other label printers I would highly recommend using drivers from Seagull Scientific. There drivers are better than those supplied by the printer manufacturer.