To Set Up the Printing of Carrier Labels on a Thermal Printer
For thermal printers, the carriers usually provide labels in EPL or ZPL formats.
You can create a batch file for the operating system so that the system sends the label file to the thermal printer once you double-click the label file. To create the batch file, follow the steps in the following sections.
To Share a Printer
Connect the printer to a local network computer by using a USB cable, and turn the printer on. To share the printer on the network, do the following:
- For Windows XP:
- Open the Sharing. window, right-click the thermal printer, and select
- Select the Share this printer option, write down the shared printer name (or copy it to the clipboard), and click OK to close the dialog box.
- For Windows 7:
- Open the Printer Properties option. window, right-click the thermal printer, and select the
- On the Sharing tab on the Printer Properties dialog box, select the Share this printer option, write down the shared printer name (or copy it to the clipboard), and click OK to close the dialog box.
To Prepare a Batch File for Label Printing
On the computer to which the printer is connected, create the batch file
PrintLabels.bat
that will handle the printing. (You can change
the suggested batch name if needed.)
If you will use a USB printer, create the file as follows:
- Open Notepad, and type the following
text:
Net use LPT2: \\%ComputerName%\SharedPrinterName Copy %1 LPT2 Net use LPT2: /Delete
- Replace
SharedPrinterName
with the shared printer's actual name that you wrote down or copied earlier. Do not change %ComputerName%; the system will replace it automatically with your computer name. - Save the file as
PrintLabels.bat
to the appropriate location. Make sure that you select All Files for the Save as Type action.
If you will use a network printer, take these steps:
- In Notepad, type the following
text:
print /d:\\ServerName\PrinterName %1
- Replace
ServerName
with the name of your network server. - Replace
PrinterName
with the name of your network thermal printer. - Save the file as
PrintLabels.bat
to the appropriate location. Make sure that you select All Files for the Save as Type action.
To Associate the File Extension with the Created Batch File
You can register the file extension with the Windows operating system as follows:
- For Windows XP:
- Open File Types tab. and select the
- Click New to register the extension of the carrier's file.
- Select the extension from the list of extensions and click the Change button under the details section.
- Select the
PrintLabels.bat
batch that you’ve created earlier.
- For Windows 7:
- Click Start and type Index in the search text box. On the list of search results, that appears as you type, select Indexing Options.
- On the Indexing Options dialog box, click the Advanced button.
- Open the File Types tab and add the carrier file's extension to the list.
- Click OK to save the settings and close the dialog box.
- Open Current
Default columns, select the
PrintLabels.bat
batch that you’ve created earlier.
, select the added extension. In the
Connect the printer and load the label stock. Now the system will be able to attach carrier labels to the appropriate lines in the shipment documents.