Direct Print to Dot Matrix Printer
- To run the demo, you need to install the Proxy Printer Server on your local computer attached to the printer. Go to the installation section below to install the proxy.
- You can access the Sales, Purchase, Invoice, and Picking menu and open a document to print
- Find the Dotmatrix Tab on each document, click the Refresh Printer Data to load the dotmatrix data
- Click the Dot Matrix printer button on the header of each document to send the data to dot matrix printer
Introduction
- this is modul is used to print PO, SO, Picking, Invoice directly to dot matrix printer
- no special hardware needed
- using python flask based printer proxy script
- adds printer_data field on account.move, sale.order, purchase.order, stock.picking
- uses printer template data from email.template named “Dot Matrix *”
- you can easily modify the template to adjust your printed documents
Proxy Installation on Linux/Mac/Raspberry Pi
- copy the proxy python script from the folder vit_dotmatrix/static/py-printer-linux.zip to you local computer
- for demo purpose, you can download it from here
- unzip into any folder on your local client computer where the printer is connected
- install the required Python modules: flask and flask-cors, you can use pip install -r requirements.txt command
- follow the INSTALL.TXT instruction on how to install and run the script
- you can then print Invoice, SO, PO directly to local dotmatrix printer
Proxy Installation on Windows with Python
- copy the proxy python script from the folder vit_dotmatrix/static/py-printer-win.zip to you local computer
- for demo purpose, you can download it from here
- unzip into any folder on your local computer where the printer is connected
- install python on your windows computer by downloading the executable from http://python.org
- install the required Python modules: flask and flask-cors, you can use pip install -r requirements.txt command
- install py32win from https://github.com/mhammond/pywin32/releases
- you can then print Invoice, SO, PO directly to local dotmatrix printer
Determining which printer to use
Edit the file /py-printer-win/printer.py. At line 1: change PRINTER_NAME value to the exact printer name detected on your local computer. You can find this name from Windows Printer Device Manager control panel.
For Linux/Mac/Raspi it uses the default printer as assinged by the LPR printer system.