Printer Setup Guide
Printer Setup Guide
Operating System: Windows 10 Home
Adding the Printer:
Navigate to the Control Panel.
Click on "Hardware and Sound."
Select "Devices and Printers."
Click on "Add a printer."
Choose "The printer that I want isn't listed."
Opt for "Add a local printer."
Ensure that the printer is connected to the computer via USB.
Select the USB port to which the printer is connected.
Choose the manufacturer as "Generic" and the printer as "Generic/Text only."
Assign the printer name as "POS_RECEIPT."
Once the printer is successfully added, make sure to share it and set it as the default printer.
Setup Printer Application
Setting up XAMPP:
Download XAMPP with PHP 7.4 from the official website.
Install XAMPP and ensure it starts automatically upon boot.
Creating Auto-Start Shortcut for XAMPP:
Copy the XAMPP shortcut.
Press "Ctrl+R" to open the "Run" dialog box.
Enter "shell:startup" in the dialog box and press "Enter."
A folder will open, paste the XAMPP shortcut into this folder.
Configuring XAMPP to Start Apache Automatically:
In XAMPP settings, enable Apache2 to start automatically when the application starts.
Downloading Code:
Obtain the code from the following GitHub repository: https://github.com/BillingPie/pprinter
Make sure to use the "main" branch.
Copying Code to htdocs:
Copy the downloaded code into the "htdocs" folder of XAMPP.
Create a folder named "pprinter" and paste the code inside it.
Testing the Printer:
Open your preferred web browser and enter the following URL: http://localhost/pprinter/textprint
This will print a test slip to check the printer functionality.
Allowing Insecure Private Network Requests:
Open Google Chrome and enter "chrome://flags/#block-insecure-private-network-requests" in the address bar.
Disable the "Block insecure private network requests" option.
Configuring POS on Server:
Add the print URL in the user account settings.
If multiple users are sharing a single printer, ensure you have a static IP for the local network.
For a single user, you can use "http://localhost/pprinter/print" as the print URL.
By following these steps, your printer should be set up and ready to print from the desired applications. If you encounter any issues during the setup process, refer to the troubleshooting section in the user manual or seek assistance from the support team.
Happy printing!
Last updated