diff options
Diffstat (limited to 'library/SSRS/Report.php')
-rwxr-xr-x | library/SSRS/Report.php | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/library/SSRS/Report.php b/library/SSRS/Report.php index 97a3362..a9b2f3a 100755 --- a/library/SSRS/Report.php +++ b/library/SSRS/Report.php @@ -258,13 +258,13 @@ class SSRS_Report { $result = $this->getSoapExecution()->LoadReport($params); return new SSRS_Object_ExecutionInfo($result); } - + /** * Get current execution info * * @return \SSRS_Object_ExecutionInfo */ - public function getExecutionInfo(){ + public function getExecutionInfo() { $result = $this->getSoapExecution()->GetExecutionInfo2(); return new SSRS_Object_ExecutionInfo($result); } @@ -312,6 +312,27 @@ class SSRS_Report { } /** + * + * @param string $format + * @param string $streamId + * @param array $deviceInfo + * @return \SSRS_Object_RenderStream + */ + public function renderStream($format, $streamId, $deviceInfo = array()) { + $this->checkSessionId(); + $deviceInfo = array('DeviceInfo' => array_merge(array('Toolbar' => 'false'), $deviceInfo)); + + $renderParams = array( + 'Format' => $format, + 'StreamID' => $streamId, + 'DeviceInfo' => $this->renderDeviceInfo($deviceInfo), + ); + + $result = $this->getSoapExecution()->RenderStream($renderParams); + return new SSRS_Object_RenderStream($result); + } + + /** * Checks if there is a valid Session ID set. * */ |