In This Topic
Insert tab consists of several fields which can be inserted while designing a report. Each field button creates a field and initializes its properties. The Insert tab consists of two groups:
Fields group: The following image displays Fields group:
It consists of the following items:
- Arrow: Returns the mouse cursor to an arrow cursor.
- Text: Creates a field bound to the source recordset or an unbound (static) text label. When you click this button, a menu appears and you can select the recordset field. Bound fields are not limited to displaying raw data from the database. You can edit their Text property and use any VBScript expression.
- RTF : Creates an RTF field. When you click this button, a menu appears where you can select other fields that are contained in the same report definition file to be displayed in RTF format.
- Checkbox: Creates a bound field that displays a Boolean value as a check box. By default, the check box displays a regular check mark. You can change it into a radio button or cross mark by changing the value of the field's Checkbox property after it has been created.
- Barcode : Creates a field that displays a barcode. When you click this button, a menu appears where you can select other fields that are contained in the same report definition file to be displayed as a barcode. See Barcodes in Reports for more information.
- Calculated: Creates a calculated field. When you click this button, the code editor dialog box appears so you can enter the VBScript expression or an arbitrary formula whose value you want to evaluate. When you click the drop down, you can select commonly used expressions that render the date or time when the report was created or printed, the page number, page count, or "page n of m", or the report name.
- Picture: Creates a field for data bound stored in the recordset picture or static (unbound) picture. When you click this button, a drop down appears so you can select a picture field in the source recordset (if there is one; not all recordsets contain this type of field). If there are no data bound pictures, then this option creates a field that displays a static picture, such as a logo. A dialog box appears on clicking Picture to prompt you for a picture file to insert in the report. A copy is made of the picture you select and placed in the same directory as the report file. You must distribute this file with the application unless you embed the report file in the application. When you embed a report file in your application, any unbound picture files are embedded too.
- Line: Creates a line. Lines are often used as separators.
- Rectangle: Creates a rectangle. Rectangles are often used to highlight groups of fields or to create tables and grids.
- Sub-Report : Creates a field that displays another report. When you click this button, a menu appears and you can select other reports that are contained in the same report definition file. See Creating a Master-Detail Report Using Subreports for more information.
- Page Break: Creates a field that inserts a page break.
Custom Fields group: The following image displays Custom Fields group:
It consists of the following items:
- Chart Field: Creates a field that displays a chart. Unlike most bound fields, Chart fields display multiple values. To select the data you want to display, set the Chart field's Chart.DataX and Chart.DataY properties. To format the values along the X and Y axis, set the Chart.FormatX and Chart.FormatY properties. See Adding Chart Fields for more information.
- Gradient Field: Creates a gradient field. Gradients are often used as a background feature to make other fields stand out. See Adding Gradient Fields for more information.
- SuperLabel Field: Creates a field that renders HTML formatted text. The text property of the field is set to any HTML text that is required to be rendered.
- QRCode Field: Creates a Quick Response code field that renders 2D bar codes.
- Map Field: Creates a field that displays a region of earth, i.e., a map. See Maps in Reports for more information.
See Enhancing the Report with Fields for more information. For more information on adding fields to your report, see Creating Report Fields.