diff options
Diffstat (limited to 'library/SSRS/Object/ReportOutput.php')
-rwxr-xr-x | library/SSRS/Object/ReportOutput.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/library/SSRS/Object/ReportOutput.php b/library/SSRS/Object/ReportOutput.php new file mode 100755 index 0000000..208a638 --- /dev/null +++ b/library/SSRS/Object/ReportOutput.php @@ -0,0 +1,28 @@ +<?php + +/** + * Description of ExecutionParameters + * + * @author andrew + */ +class SSRS_Object_ReportOutput extends SSRS_Object_Abstract { + + public function download($filename) { + header("Cache-control: max-age=3600, must-revalidate"); + header("Pragma: public"); + header("Expires: -1"); + header("Content-Description: File Transfer"); + header('Content-Disposition: attachment; filename="' . $filename . '"'); + header("Content-Type: " . $this->MimeType); + header("Content-Transfer-Encoding: binary"); + header("Content-Length: " . strlen($this->Result)); + + echo($this->Result); + exit(0); + } + + public function __toString() { + return (string) $this->Result; + } + +} |