Condividi tramite


CREATE REPORT Command

Opens a report in a Report designer.

CREATE REPORT [FileName | ?] [NOWAIT] [SAVE] [WINDOW WindowName1]
   [IN [WINDOW] WindowName2 | IN SCREEN

Parameters

  • FileName
    Specifies the file name for the report. If you don't specify an extension for the file name, Visual FoxPro automatically assigns an .frx extension. If a report file with the name you specify already exists, you are asked if you want to overwrite the existing file (if SET SAFETY is ON).

  • ?
    Displays the Create dialog box that prompts you to name the report being created.

  • NOWAIT
    Continues program execution after the Report designer is opened. The program doesn't wait for the Report designer to be closed, but continues execution on the program line immediately following the line that contains CREATE REPORT NOWAIT. If you omit NOWAIT when CREATE REPORT is issued in a program, the Report designer is opened and program execution pauses until the Report designer is closed.

    Including NOWAIT has no effect on CREATE REPORT when it is issued in the Command window.

  • SAVE
    Leaves the Report designer open after another window is activated. If you omit SAVE, the Report designer is closed when another window is activated.

    Including SAVE has no effect when issued from the Command window.

  • WINDOW WindowName1
    Specifies a window whose characteristics the Report designer takes on. For example, if the window is created with the FLOAT option of DEFINE WINDOW, the Report designer can be moved. The window need not be active or visible, but it must be defined.

    The Report designer has a default size that can be larger than the window from which it takes its characteristics. In this case, the Report designer still assumes the characteristics of the window in which it is placed. The upper-left corner of the Report designer is placed at the same coordinates as the upper-left corner of the window, and extends beyond the window's borders.

  • IN [WINDOW] WindowName2
    Specifies a parent window in which the Report designer is opened. The Report designer doesn't assume the characteristics of the parent window and cannot be moved outside the parent window. If the parent window is moved, the Report designer moves with it.

    The parent window must first be defined with DEFINE WINDOW, and must be visible, to access the Report designer.

  • IN SCREEN
    Specifies that the Report designer is opened explicitly in the main Visual FoxPro window, after the Report designer has been placed in a parent window. The Report designer is placed in a parent window by including the IN WINDOW clause.

Remarks

Issuing CREATE REPORT without any additional arguments opens a new Report designer. The name REPORT1 is assigned to the report definition. When you exit the Report designer, you are prompted to save the report definition with a different name.

CREATE REPORT can also be used to generate a quick report without opening the Report designer.

See Also

ASCIICOLS | _ASCIIROWS | CREATE REPORT - Quick Report | MODIFY REPORT | REPORT | Report Designer | Creating Reports and Labels