### Searching for text in a report

You can use the Search dialog to find text in the values of a certain field or in the whole report content. To show this dialog, click Menu > Edit > Search, click the Search button on the Standard toolbar, or right-click a field value or label (or object such as text box) and click Search on the shortcut menu. See the dialog.

- To find text in the values of a particular field:
  1. Make sure the Search in Whole Report option in the Search dialog is NOT checked.
  2. Select the field from the Select Field drop-down list.
  3. Set the range with which to search for the value from the Value Range drop-down list.
  4. Select the field value you want to search for from the Value drop-down list.

     Note: If All is selected in the Value Range drop-down list, the only item in the Value drop-down list will be All and you cannot change the value, in which case, when you submit the search, JReport will search for all the values of the selected field.

  5. Specify whether or not to match case, whether or not to match whole word, whether or not to highlight all the matching values and the searching direction.
  6. Click the Search button.
- To find text in the report content:
  1. In the Search dialog, check the Search in Whole Report checkbox.
  2. Type the string you want to search for in the Value box.
  3. Set the other options such as the searching direction.
  4. Click the Search button.

Notes:

- Finding text in the values of a particular field is not supported on crosstabs and charts.
- If you check Highlight All in the Search dialog, to clear the highlighting in the search result, uncheck the option and submit the search again, or refresh the report.
- If you have not selected the Search in Whole Report option, you will not be able to search special fields for strings.
- JReport allows you to define display names for fields to be shown in the Search dialog. For detailed information, see Customizing the field display names in the JReport Designer User's Guide.