/** * Gets a secondary rendering stream associated with a processed report. * @param RenderBaseType $renderType $renderType Object * holding Format and DeviceInfo. * @param string $StreamID The stream identifier. * @param string $Encoding [out] The encoding class name. * @param string $MimeType [out]The MIME type of the stream. * @return byte[] A Byte[] array of the stream in the specified format */ public function RenderStream($renderType, $StreamID, &$Encoding, &$MimeType) { $parameters = array("Format" => $renderType->GetFormat(), "StreamID" => $StreamID, "DeviceInfo" => $renderType->GetDevInfoXML()); try { $this->SetSessionId(); $stdObject = $this->_soapHandle_Exe->RenderStream($parameters); $renderStreamResponse = SSRSTypeFactory::CreateSSRSObject('RenderStreamResponse', $stdObject); $Encoding = $renderStreamResponse->Encoding; $MimeType = $renderStreamResponse->MimeType; return $renderStreamResponse->Result; } catch (SoapFault $soapFault) { self::ThrowReportException($soapFault); } }