How to generate a print data file for Honeywell mobile computer to print on a Zebra Bluetooth printer by its utility, BTPrint.exe? - printing

I have a Honeywell Dolphin 6510 mobile computer( hand-held device with Windows Mobile 6.0 OS ).
I want to develop an application which will be run on this mobile computer. The application needs to call a Honeywell device stock command utility, BTPrint.exe, to print on a Zebra Bluetooth printer. The path and filename of a print data file will be the value of 'CommandArgs' of the command, BTPrint.
This print data file needs to include the formatting commands for the printer used.
Here is the way about Honeywell devices printing on Bluetooth printers.
https://honeywellaidc.force.com/supportppr/s/article/How-to-print-a-label-on-a-Bluetooth-printer
Is there any sample code that reads a label format file created by Zebra Designer and then generates a print data file for Zebra printer which will be used by the Honeywell print utility, BTPrint.exe?
Btw, I have tried to download and install Honeywell SDK several times in order to find some of these samples. But every time I failed in installing process. I wrote to its support email address for help, but have not gotten any reply. :-(
Thank you all in advance.

This is my finding so far:
How the Print Demo works
The Printing Demo application is controlled by exm files. To extend the list of available print samples, merge the new files and information into the exm file. The print files hold everything needed to print a demo label or receipt in the printing language understood by the printer.
copy the device file "\Honeywell\PrintDemoMenu.exm" to the PC.
Open PrintDemoMenu.exm with a Text-only editor, for example Windows Notepad, on the PC.
Insert new lines in the following form for every new print file (here csim2receipt.prn):
<Section desc="" flags="128" name="PrintCSIM2receiptBT">
<Key flags="16" name="Name">Intermec (BT,CSIM,2inch) Receipt Print</Key>
<Key flags="16" name="Description">Print 2inch Receipt to an Intermec printer in CSIM</Key>
<Key flags="16" name="CommandLine">$(InstallDir)\Power Tools\btprint.exe</Key>
<Key flags="16" name="CommandArgs">"$(InstallDir)\Demos\csim2receipt.prn"</Key>
Copy the menu exm back to the device.
Start Printer demo on device and check for the new entry.
UPDATE: see BTPrint.exe Sample with Zebra Designer

At last, I found that we can generate these print data files( .prn for Toshiba TEC portable printer ) with utility, BarTender, which is a 3rd-party tool some like Zebra Designer.
And, I actually printed out on a TEC printer with the command "BTPrint.exe \Temp\mytec.prn" running on my Honeywell mobile computer.
In fact, we also can generate a print data file for Zebra printer with utility, Zebra Designer.
For you all reference.

Related

How to print with PCL

I have Xerox workcenter 7120, this printer is on network. I would like to print pdf file with PCL command from Linux host. My printer support PCL.
But I don't know how can I send print job on my printer with PCL.
I have find this document how explain all PCL command pcl command xerox
PCL itself is quite complex, so it's not that easy to give simple answer to your question.
First you need to convert PDF to PCL data and then you send PCL data to printer. AFAIK, GhostScript utility can do the conversion for you.
BTW, check if your printer supports PJL and possibly direct PDF printing. That could be much easier to implement since there is no need to use PCL at all.
In general, you connect to your printer's IP address, port 9100 (default) and send series of commands (PJL and/or PCL) along with actual PDF (if your printer supports it).
Example:
%-12345X#PJL COMMENT *Start Job*
#PJL JOB NAME = "test"
#PJL ENTER LANGUAGE = PDF
... actual PDF binary contents goes here ...
%-12345X#PJL EOJ NAME = "test"
%-12345X
%-12345X - escape sequence for PJL
#PJL [something] - PJL command

LPR: what is the location of the file that will be sent to the printer?

For a research project about printing nanofluids I need some more control over my Epson Stylus SX600FW.
I am sending a file to the printer using lpr test.ps, then it is in the print queue. Now I want to see the file (in pdl?) that the printer driver will send to the printer. Where is the temp storage location of this file?
Or is there any other way to obtain this file? This file should contain ESC/P-R sequences in which I want to make some changes and then send that file to the printer.
Using the URI file:/tmp/ouput.prn, and by configuring it with the (gimpprint) driver of your printer, you can obtain the output that is being sent to the printer.
This is a hexadecimal file. Using the parse-escp2 perl script from the test directory of gimp-print you can view this file in a bit more understandable format.

Using PDFSharp to print: how can I suppress Adobe window?

I have a simple C# utility that invokes PDFSharp to send a PDF file to a printer. However, it seems to behave inconsistently on a Windows 7 machine. Here's the code
PdfFilePrinter.AdobeReaderPath = "C:\\Program Files\\Adobe\\Reader 10.0\\Reader\\AcroRd32.exe";
PdfFilePrinter printer = new PdfFilePrinter(fileToPrint, printerName);
try
{
printer.Print();
When testing I launch the utility from the command line several times in a row processing a bunch of PDF files one file at a time. During some of these runs, a small Adobe window pops up. I don't have a link to what it looks like but it's a window with standard Adobe Reader X menus, a "Open a recent file" list on bottom left and "Acrobat.com services" on bottom right. Unless I manually close this window, printer.Print(); will never complete, which is a problem since I need to batch process hundreds of files at a time.
When this happens seems to be random. Sometimes it happens when the 1st test file is being processed and sometimes it's the 5th or the 7th.
How can I either ensure that this window does not appear or suppress it automatically if it does?
Any chance your printer supports PDF natively? If so, you could just send it directly to the printer either via LPR/RAW 9100 or through a Windows print queue: How to send raw data to a printer

Interfacing to a Brother PTouch printer?

The Brother PTouch QL series of printers have USB interfaces and are capable of printing QR codes. Here's a typical model:
http://www.ptouchdirect.com/ptouch/new_ql570.html
How can I prepare input (i.e. format) for these printers and talk to them directly from my program? I'm interested in Windows, Mac, Linux platforms. Any language, a Python library would be perfect.
I don't want to generate output (e.g. CSV) and ask the user to load that into the Brother-supplied application.
I have used the iText library for printing QR barcodes. It can generate the barcode image and put it in a PDF file, which the user can send to the printer. It is a Java based library and there is also a .NET port available.
I can't speak about Windows, but Brother traditionally has very comprehensive Linux support. Here's the driver list for the PTouch models. With these drivers in place, you can print through CUPS (via the lp or lpr commands) using whatever darn file format you find is convenient for you.
OS X also uses CUPS, so printing to it would be pretty similar as on Linux... given that you can find the correct drivers.
There is a brotherprint package, part of pypi:
https://pypi.python.org/pypi/brotherprint/0.1.1
It will supposedly handle sending sockets, but I have not tried it:
import re
'''Brother Python EscP Command Library
Description:
A collection of functions to more easily facilitate printing to the Brother QL label
printers without having to memorize the ESC/P commands. Also handles sending to sockets
for you.
'''
class BrotherPrint:
font_types = {'bitmap': 0,
'outline': 1}
def __init__(self, fsocket):
self.fsocket = fsocket
self.fonttype = self.font_types['bitmap']
see: https://github.com/fozzle/python-brotherprint/blob/master/brotherprint/brotherprint.py

Convert a text file with Embedded HP Printer Codes to PostScript

I have an application that prints by generating text files with embedded printer codes, then basically just copies the file to the printer to print. I need to take that print file and convert it to an image - just as if it was printed then scanned.
My first thought was to setup a printer with a postscript printer driver attached to a file port, and then run the result through ghostscript to create a tiff, but it isn't working.
Any ideas?
The printer codes are probably PCL. Maybe pcl-parser could serve as a start for your own tool to do this? There also seems to be a commercial product called PCLXForm.
Edit: Also investigate GhostPCL.

Resources