From 1492a53cdf4548e4c5586907ecf941a03f3374c9 Mon Sep 17 00:00:00 2001 From: "arron.woods@gmail.com" Date: Wed, 5 Dec 2012 10:22:17 +0000 Subject: Report output download mimetype --- library/SSRS/Object/ReportOutput.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/SSRS/Object/ReportOutput.php b/library/SSRS/Object/ReportOutput.php index 628b814..b3ef658 100755 --- a/library/SSRS/Object/ReportOutput.php +++ b/library/SSRS/Object/ReportOutput.php @@ -11,11 +11,12 @@ class SSRS_Object_ReportOutput extends SSRS_Object_Abstract { header("Cache-Control: public"); header("Content-Description: File Transfer"); header('Content-Disposition: attachment; filename="' . $filename . '"'); - header("Content-Type: " . $this->mimeType); + header("Content-Type: " . $this->MimeType); header("Content-Transfer-Encoding: binary"); header("Content-Length: " . strlen($this->Result)); - die($this->Result); + echo($this->Result); + exit(0); } public function __toString() { -- cgit v1.1