ComponentOne VSView Reporting Edition
Adding Fields to the Report

Use the ToolBox to add fields to your report. Each button creates a field and initializes its properties as follows:


Label field: Creates a field that displays static text.


Bound field: Creates a field that is bound to the source recordset. 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.


Expression Field: Creates a calculated field. When you click this button, the code editor dialog will appear so you can enter the VBScript expression whose value you want to display.

Checkbox Field: Creates a bound field that displays a Boolean value as a check box. By default, the checkbox displays a regular checkmark. You can change it into a radio button or crossmark by changing the value of the field's Checkbox property after it has been created.

Unbound Picture field: Creates a field that displays a static picture, such as a logo. When you click this button, a dialog box will appear to prompt you for a picture file to insert in the report. A copy will be 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.

Bound Picture field: Creates a field that displays a picture (or object) stored in the recordset. When you click this button, a menu appears so you can select a picture field in the source recordset (if there is one; not all recordsets contain this type of field).

Line field: Creates a line. Lines are often used as separators.

Rectangle field: Creates a rectangle. Rectangles are often used to highlight groups of fields or to create tables and grids.

Subreport field: 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.

Page Break field: Creates a field that inserts a page break.

After you click any of these buttons, drag the mouse over the report and the cursor will change into a cross-hair. Click and drag to define the rectangle that the new field will occupy, and then release the button to create the new field. If you change your mind, hit the ESC key or click the arrow button to cancel the operation.

Note that VSReport8 only has one type of Field object. The buttons simply set some properties on the Field object to make it look and act in a certain way.

You can also add fields by copying and pasting existing fields, or by holding down the control key and dragging a field or group of fields to a new position to create a copy.

To see how this works, click the Unbound Picture button and select a picture file. Then move the mouse over the Page Header section and mark a rectangular area above the first label. The picture you selected will appear in the area you marked.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback