### Result Viewer Bean properties

JReport Result Viewer Bean has four properties: reportName, showInfoLevel, logFile and loadReport. The following methods are used to set the values of these properties:

- setReportName ("ReportName")
- setTempPath("theTemporaryPath");
- setShowInfoLevel (vDebug/vError/vOff)
- setLogFile ("LogFileName")
- setLoadReport ("Yes/No")

Parameters

- ReportName - Specifies the name of the JReport result file that is to be viewed. It contains both the path information and the file name.

  Note: Here the report name is the result file name with an .rst extension (NOT the report file .cls).

- theTemporaryPath - The temporary file path. When the bean runs, the temporary files will be written in this path. You should set the full path of the temporary files in this method as:

  `bean.setTempPath("c:\\temp");`

  If you do not set the temporary path, the default path is the directory from where the Bean will be run.

- vDebug/vError/vOff - These are used for showing and turning off debug and error information. LogFileName specifies where the debug, error and other information will go. LogFileName contains both the path and the file name. If no path or file is specified, the default will be used.
- Yes/No - Indicates whether or not to start to view the result of the report (the file specified by ReportName).