diff options
author | arron.woods@gmail.com <arron.woods@gmail.com@deae1e92-32f9-c189-e222-5b9b5081a27a> | 2012-12-05 10:22:17 +0000 |
---|---|---|
committer | arron.woods@gmail.com <arron.woods@gmail.com@deae1e92-32f9-c189-e222-5b9b5081a27a> | 2012-12-05 10:22:17 +0000 |
commit | 1492a53cdf4548e4c5586907ecf941a03f3374c9 (patch) | |
tree | d5114222b0c10abc605dd155b05b0f2e0c06c51f | |
parent | 32df2c87940c19a63dd4205443e44f39abf57ac5 (diff) | |
download | php-ssrs-1492a53cdf4548e4c5586907ecf941a03f3374c9.zip php-ssrs-1492a53cdf4548e4c5586907ecf941a03f3374c9.tar.gz php-ssrs-1492a53cdf4548e4c5586907ecf941a03f3374c9.tar.bz2 |
Report output download mimetype
-rwxr-xr-x | library/SSRS/Object/ReportOutput.php | 5 |
1 files 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() { |