21.11 Printer

Here, you can configure the settings for a printer (connected to Xpanel).

Print Settings

  1. Printer: Two types of printers are supported: ‘PCL Laser' and 'PCL Inkjet’.

  2. Port: Select the port that is connected to the printer.

    1. For a USB host printer: Select [LPT1:]. If the USB printer is connected to Xpanel successfully, [LPT1:] is automatically set as the port.

    2. 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”

  3. Paper Size: Select the printer paper size: ‘A4', ‘B5’, ‘Legal’, or 'Letter’.

  4. Draft Mode: If this feature is disabled, the image will be printed with a better resolution.

  5. Print Range: Select ‘all’.

  6. Orientation: Select the print direction.

  7. Margins: Control the margin size.

For Network Port

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.

Print Screen

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.

  1. Create a button for the print screen function.

    1. For the selected object, go to [Object Config] → [Touch] → [Command Expression].

    2. Enter the function ‘HardCopy();’ as the command expression.

    3. After downloading the project to Xpanel, touch the ‘HardCopy()’ button.

    4. Check the result.

    5. If the printer settings are OK, a print completion message will appear: