次の方法で共有


Print Report Details in a Ledger Style Sample

File: ...\Samples\Solution\Reports\Ledger.frx

The report, Ledger.frx, prints an employee phone list that alternates printing a gray background behind records. The data environment for this report contains the EMPLOYEE table from the Testdata.dbc in the Solution project.

In the report layout, the Page Header band has label controls that print the report title, description, and column headings. The Detail band has the field and label controls that print the information for each employee.

To print with ledger style, the controls for the employee information are on top of a rectangle. The rectangle's color is gray and its mode is opaque. The report prints the rectangle for every other record by evaluating an expression in the Print When options of the rectangle control. The expression is MOD(nCounter,2) = 1 which uses a report variable, nCounter that increments for each record printed. The report uses the value of this variable to determine when to print the rectangle.

See Also

Tasks

Print in Catalog Format Sample

Solution Samples

Reference

Visual FoxPro Foundation Classes A-Z

Other Resources

Reports Solution Samples