ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Editors / Report editor / Printing in WEBDEV
  • Overview
  • How to?
  • Configuring the Web server for the local printers (IIS Web servers only)
  • Configuring the Web server for the network printers
  • Selecting the printer
  • Printing the report
  • Example
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Printing a report on one of the printers connected to the Web Server
Overview
To print a report on one of the printers connected to the Web server, you must:
  • configure the Web server. This configuration depends on the type of printers used (local or network).
  • specify the printer to use.
  • print the report.
Remark: This type of print is recommended for the Intranet sites only.
How to?

Configuring the Web server for the local printers (IIS Web servers only)

To configure the Web server for the local printers (IIS Web servers only):
  1. In IIS, use a local account (IUSR) for the anonymous connections. This IUSR account corresponds to the "Internet guest" account and it belongs to the "Guest" group.
    To get the IUSR account of the current Web server, see How to identify the account that runs the AWP protocol.
  2. Check whether the printers used by this IUSR account are allowed to print ("Security" tab of printer properties).
Remark: No specific configuration is required for the other types of Web servers.

Configuring the Web server for the network printers

To configure the Web server for the network printers:
  1. Depending on the type of Web server used:
  2. Make sure the domain account is allowed to write to the Regedt32 registry:
    • Start Regedt32 ("Start .. Run .. Regedt32" from the Windows desktop).
    • Select the "HKEY_LOCAL_MACHINE\SOFTWARE\PC SOFT\WEBDEV\29.0" key.
    • Select "Security .. Rights". Check whether the domain account has the rights to create registry keys ("Total control").
  3. Check whether the printers can be accessed by the Web server.
  4. Check whether the printers used by the domain account are allowed to print ("Security" tab of printer properties).

Selecting the printer

To select the printer:
  • use iConfigure.
    Remark: iListPrinter returns the list of local printers installed on the current computer.
  • specify the printer that will be used by default in the WEBDEV administrator ("Configure the prints" button, "Configuration" tab).

Printing the report

To print a report, use iPrintReport.
Example
The "RPT_ReportName" report must be printed on a local or network printer.
The "LIST_PrinterList" control lists the local and network printers accessible from the Web server.
The "BTN_PrintReport" button is used to:
  • configure the printer to use.
  • print the report.
In this example:
  • the initialization code of the "LIST_PrinterList" control is as follows:
    // Add the network printers
    ListAdd(MySelf, "\\Server1\HP 750")
    ListAdd(MySelf, "\\Server2\Canon LBP-1000")
    // Add the local printers
    ListAdd(MySelf, iListPrinter())
  • the server click code of the "BTN_PrintReport" button is as follows:
    // Select the printer used
    iConfigure(LIST_PrinterList[LIST_PrinterList])
    // Print the report
    iPrintReport(RPT_ReportName)
    // If no printer is selected,
    // the print will be performed on the printer selected
    // in the WEBDEV administrator
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help