### Programming with the Result Viewer Bean

JReport Result Viewer can be used to view local JReport result files generated by JReport Engine. You can show the report result file ( .rst) and export the report result to multiple file formats and to printer, by calling JReport Result Viewer Bean in three different ways: by JReport Designer, by JReport Server, or by JReport Engine Bean.

The following topics describe how to program with JReport Result Viewer Bean:

- Preparations
- Using the Result Viewer Bean
- An illustrative example