PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Principle
  • Retrieving the outgoing COM port of Bluetooth
  • Checking the connection to the Bluetooth printer
  • Start the print from the mobile 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
Retrieving the outgoing COM port of Bluetooth
To get the outgoing COM port for Bluetooth:
  1. Switch the Bluetooth printer on if not already done.
  2. Switch on the Bluetooth on the Pocket PC (it is switched off by default).
  3. Run "Bluetooth settings".
  4. Select the "Serial port" tab.
  5. Check "Enable the service". Uncheck the "Authorization required" and "Authentication required" options.
  6. Write down the outgoing serial port number (8 in most cases). This COM port number belongs to the configuration parameters of the Bluetooth printer that will be requested by the WINDEV Mobile application during the first print function. Then, this port number can be modified by iConfigure.
Checking the connection to the Bluetooth printer
To check the connection to the Bluetooth printer:
  1. Run "Bluetooth manager".
  2. Connect to the printer by using "New .. Connect".
  3. Then, select "Explore a Bluetooth device". Follow the wizard for choosing your printer.
  4. Select your printer.
  5. The wizard list the services proposed by the printer. Select the "Serial port" service.
  6. The connection test is ended.
Start the print from the mobile application
To print from a mobile application:
  1. Type the following WLanguage print code in the code of a button for example:
    // 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()
  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 "Bluetooth/Serial" type
  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