PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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.
Note: This type of print is recommended for the Intranet sites only.
How to proceed?

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 find out the IUSR account of current Web server, see How to find out 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).
Note: 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. Check whether the domain account is allowed to write into the Regedt32 registry:
    • Start Regedt32 ("Start .. Run .. Regedt32" from the Windows desktop).
    • Select "HKEY_LOCAL_MACHINE\SOFTWARE\PC SOFT\WEBDEV\23.0".
    • 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.
    Note: 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 required version
  • Version 9
Comments
Click [Add] to post a comment