##### Setting the report communicator

The method SetReportCommunicator(Communicator) is used to set the report communicator.

Parameter

- communicator - The Communicator here is a class defined by JReport. After users set the communicator, the viewer will load the report from this communicator, not the result file.

You are recommended to use getReportCommunicator() in JReport Engine Bean, and use the method setCommunicator() in JReport Result Viewer Bean. That is,

`resultViewerBean.setCommunicator(engineBean.getReportCommunicator());`