|
|
|
|
|
- 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
Printing a report on one of the printers connected to the Web Server
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. 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): - 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. - 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: - Depending on the type of Web server used:
- 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\30.0" key.
- Select "Security .. Rights". Check whether the domain account has the rights to create registry keys ("Total control").
- Check whether the printers can be accessed by the Web server.
- 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).
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|