summaryrefslogtreecommitdiffstats
path: root/library/SSRS/Object
diff options
context:
space:
mode:
authorarron.woods@gmail.com <arron.woods@gmail.com@deae1e92-32f9-c189-e222-5b9b5081a27a>2012-12-05 10:22:17 +0000
committerarron.woods@gmail.com <arron.woods@gmail.com@deae1e92-32f9-c189-e222-5b9b5081a27a>2012-12-05 10:22:17 +0000
commit1492a53cdf4548e4c5586907ecf941a03f3374c9 (patch)
treed5114222b0c10abc605dd155b05b0f2e0c06c51f /library/SSRS/Object
parent32df2c87940c19a63dd4205443e44f39abf57ac5 (diff)
downloadphp-ssrs-1492a53cdf4548e4c5586907ecf941a03f3374c9.zip
php-ssrs-1492a53cdf4548e4c5586907ecf941a03f3374c9.tar.gz
php-ssrs-1492a53cdf4548e4c5586907ecf941a03f3374c9.tar.bz2
Report output download mimetype
Diffstat (limited to 'library/SSRS/Object')
-rwxr-xr-xlibrary/SSRS/Object/ReportOutput.php5
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() {