PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Principle
  • Activating the WiFi
  • Activation
  • Checking the connection of the printer by Wi-Fi
  • Starting the print from the application
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Principle
To print by Wi-Fi from a WINDEV Mobile application for Windows Mobile, you must:
  1. Activate the WiFi and check the connection of the printer by WiFi.
  2. Start the print from the WINDEV Mobile application run in Windows Mobile.
Activating the WiFi

Activation

To activate the communication by WiFi, you must:
  1. Switch the WiFi server on.
  2. Switch the printer on.
  3. Switch on the WiFi on the Pocket PC.

Checking the connection of the printer by Wi-Fi

To check the connection of the Pocket PC to the printer by WiFi:
  1. Print the status page of the print server (see the documentation of the print server for more details). This page provides the ESSID, the channel number, the IP address as well as the sub-network mask.
  2. On the Pocket PC, display the following parameters:
    • parameters of the Wi-Fi access ("Programs .. Parameters .. Wireless Ethernet", "Network card" tab).
      Enter an IP address and a sub-network mask compatible with the ones of the print server.
    • WLAN parameters ("Programs .. Parameters .. WLAN utility"):
      • in the "Site Survey" tab, the print server must be visible. The SSID control corresponds to its name.
      • in the "Status" tab: perform a ping on the IP address of the print server. The print server must respond to the ping.
Starting the print from the application
To print from a Windows Mobile application:
  1. Enter the following WLanguage code to print (in the button code for instance):
    • the following code is used to display the window for printer selection.
      // Ask to open the window for configuring the printer
      // (This command is optional -
      // It is used to redefine the parameters of the default printer).
      iConfigure()
      // Print "Hello" in the top left corner of the page.
      iPrint(iPosY(10) + iPosX(10) + "Hello")
      // Ask to print the page
      iEndPrinting()
    • the following code is used to directly print in a PCL file.
      // Direct print on the printer
      // IP address of the printer: 192.168.15
      // Network print port: 9100
      iDestination(iPCL,"192.168.15:9100")
      // Print "Hello" in the top left corner of the page.
      iPrint(iPosY(10) + iPosX(10) + "Hello")
      // Ask to print the page
      iEndPrinting()
  2. Generate the executable and copy it to the Pocket PC.
  3. Run your application and start the print.
During the first print with the Mobile application, you must configure the printer that will be used.
  1. In the configuration window, select "Options .. Add".
  2. Give a name to the printer.
  3. Select the the type "WiFi/Network card"
  4. Select the COM port that was indicated before and validate.
  5. Select the printer from the list of devices in the Bluetooth browser.
  6. The page is printed.
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment