Create a Report (GRW for Genero BDL)

Creating a report involves setting up a project to store the report files, developing a report application, designing the report, and testing the report.

Before you begin, set the Report Writer environment. See Set the Report Writer environment (GRW for BDL).
This procedure is provided to give you a quick start, or overview, for creating a report application. For each step, there are many options that are not discussed here, but are covered in other topics. Use this procedure as a guide for using Genero Report Writer to create reports.
  1. Create the project. A project contains the nodes for storing and managing your report application files.
    1. Select File >> New.
    2. In the Categories listing, select the language you wish to work with.
    3. In the Types listing, select the default project (4pw) and click OK.
    4. Select File >> Save as and complete the dialog to save your project.
  2. Set up the project's Application node. The project tree should have a Group node, and the Group node should contain an application node, a databases node, and a library node.
    1. Rename the nodes to meaningful names.
    2. Right-click on the application node to create files and folders. For example, create two virtual folders named src and Designs, and create a source file named myreport.4gl.
      Note: You must add the END and END MAIN code to the source file before it enables you to save.
    3. In the Properties view, set the External dependencies value to libgre.42x. For more information about the libgre.42x library file, see the GRW reference for Genero BDL applications section.
  3. Create your report application. The report application is responsible for reading data from a database (or alternate data source) and streaming it to the Genero Report Engine.
  4. Generate the data schema. The data schema file identifies the fields and the grouping of data streamed by the Genero reporting application to the Genero Report Engine. It is used by the report design document, giving the designer the ability to select fields for placement on a report and setting report triggers. See Generate a data schema from a Genero BDL report program.
  5. Create a report design document. A report design document (4rp) is a file that defines a single report. For each report you need, you would create a separate report design document. When it comes time to create a specific report, you tell the report application which file to use.
    1. Select File >> New, Reports and select either Empty Report (.4rp) or List Report (.4rp) to start a new report.
    2. On the Data View tab, select the data schema.
    3. Report output can be output in various formats. Select File >> Report properties >> Output Configuration to change the default output for the report.
    4. Save the report design document and add it to the Designs virtual folder in your application node. For more information on working with the report design document, see The Report Design Document.
  6. Build the report application. Right-click the report application node or the report group node and select Build to compile and link the application.