Here, you can configure the settings for a printer (connected to Xpanel).
Printer: Two types of printers are supported: ‘PCL Laser' and 'PCL Inkjet’.
Port: Select the port that is connected to the printer.
For a USB host printer: Select [LPT1:]. If the USB printer is connected to Xpanel successfully, [LPT1:] is automatically set as the port.
For a network printer: Select [Network]. If Network is selected, the ‘Net Path’ field becomes available. Enter the printer path in the Net Path field.
Ex) “\Shared PC name\shared Printer Name”
Paper Size: Select the printer paper size: ‘A4', ‘B5’, ‘Legal’, or 'Letter’.
Draft Mode: If this feature is disabled, the image will be printed with a better resolution.
Print Range: Select ‘all’.
Orientation: Select the print direction.
Margins: Control the margin size.
If the port is set to ‘Network’ with a valid path, the ‘Network Printer Logon’ Dialog box will appear:
Enter the user name for the shared PC and the password in the 'Logon to Network Server' dialog box, and then click [OK]. If the login process is successful, the dialog box will close and the ‘Windows CE Networking’ dialog box will appear:
If [Yes] is selected, the password will be saved to the device, and the Dialog box will close. If [No] is selected, password entry will be required for every attempt to access the shared PC.
To apply and save the modified settings, click on [System Shutdown] in the ‘Xpanel Config’ window to restart the system. Otherwise, the modifications will only apply as long as the Xpanel remains turned on.
After you have set up the printer, a screenshot can be captured and printed out by using the ‘HardCopy()’ script function. This function prints out the current screen using the default printer.
Create a button for the print screen function.
For the selected object, go to [Object Config] → [Touch] → [Command Expression].
Enter the function ‘HardCopy();’ as the command expression.
After downloading the project to Xpanel, touch the ‘HardCopy()’ button.
Check the result.
If the printer settings are OK, a print completion message will appear: