How To Print .prn File Using C%23

How To Print .prn File Using C%23

How To Print A Prn

Disable print to file prn

Disable Print To File Prn

Print

When printing to file from an application, it may be necessary to send the saved print file to the printer. Procedure The method for printing a print-ready file depends on the file type (.prn,.rtl, etc.) and what printing applications are installed on the system.

  • To print a PRN file in Windows, use the Command Line interface: Start menu-Run-'cmd'. In Mac OS X, PRN files are printed by dragging the file to the desktop printer icon. In case the printer is connected via USB, type: COPY /B filename.prn Computer NameShared Printer Name If the printer is connected via an older parallel port connection.
  • A PRN file is a type of file that can be read by printers. It’s basically a generic output file that printers can understand. Sometimes you will end up with one of these files and need to print it. You used to be able to print these files to your local printer by using the command COPY /B C: FILENAME.PRN LPT1. These days, printers are not attached to LPT1 anymore.

This article describes how to install a generic in order to send files containing ZPL commands directly to the thermal label printer.

If your labels, barcodes, or packing slips are in plain text format, you can 'raw print' them – by sending ZPL code directly to your label printer.

Installing the Generic Text Printer Driver for the Zebra or similar type of label printer will allow you to print ZPL directly from Notepad. This print driver supports all ASCII characters and most characters of other character sets, so you will be able to send text files like ZPL, TXT, or PRN containing the code. There will be no modification or file conversion to any other format in the middle of the printing process.

Installing Generic Text Printer Driver in Windows (Generic / Text Only)

To install the Generic Text Printer Driver in Windows, follow the steps below.

Note
Depending on your operating system version, the screenshots below might be different from what you see. The screenshots have been taken on Windows 10.
  1. Open Control Panel in Windows;
  2. Go to View devices and printers;
  3. Click the Add a printer button;
  4. Select The printer that I want isn't listed option;
  5. Choose Add a local or network printer with manual settings and click Next;
  6. Select 'Use an existing port' and choose the same port where your label printer is already installed. To check which port is used to communicate with the printer, open the Control Panel > View devices and printers > right click on the printer, open the 'Ports' tab and check what port is being used;
    If it is not listed in there, select 'Create a new port' and select the 'Type of port' needed from the drop-down menu. For a network printer, select 'Standard TCP/IP' > 'Next' > enter the IP of the printer in the 'Hostname or IP address' field and click 'Next'.
  7. Select Generic and Generic / Text Only. Click Next;
  8. If a 'Which version of the driver do you want to use?' dialog appears, select Use the driver that is currently installed (recommended);
  9. Keep the name as is or change if desired;
    For your convenience, you can name it 'ZPL Printer Text Only', for example. Choose a name that you can easily remember.
  10. Choose whether you wish to share the printer. In our case we choose not to;
  11. The final screen in the wizard is displayed. Click Finish;
  12. To verify the correct work of the printer, use a test script with a printer command language appropriate to the printer. For example, you can try this simple ZPL code for testing:
    ^XZ
    ^FO50,50
    ^FDThis is a test
    ^XZ

Now there are two printer drivers installed for the same label printer, and you can use the Generic / Text Only driver to automate 'raw printing' of ZPL labels created in a text editor.

How To Print .prn File Using C%23

Finally, set up automated monitoring and printing in real-time with FolderMill. Just select the new driver as a printer when configuring Print document Action: