PHP Error

Sep 18, 2013 at 2:14 PM
Edited Sep 18, 2013 at 2:31 PM
Hi, I need to know how to integrate this report the php code is below

ReportingServices 2008:
http://test.com/ReportServer/Pages/ReportViewer.aspx?/FlashReport/ControlPanelAgrupado
PHP Code:
<?php
require_once 'SSRSReport.php';

define("UID", 'domain\user');
define("PWD", "pass*");
define("SERVICE_URL", "http://test.com/ReportServer/Pages/ReportViewer.aspx?/FlashReport/");
define("REPORT", "/ControlPanelAgrupado");

$ssrs_report = new SSRSReport(new Credentials(UID, PWD), SERVICE_URL);
if (isset($_REQUEST['rs:Command=Render']))
{
    $ssrs_report->ToggleItem($_REQUEST['rs:Command=Render']);
}
else
{
    $ssrs_report->LoadReport2(REPORT, NULL);
} 
?>
And this error:
Fatal error: Uncaught exception 'SSRSReportException' in C:\...\bin\SSRSReport.php:197 Stack trace: #0 C:\...\bin\test.php(9): SSRSReport->SSRSReport(Object(Credentials), 'http://test.c...') #1 {main} thrown in C:\...\bin\SSRSReport.php on line 197