Example #1
0
        public DataTable GetReport( string reportName, Dictionary<string, string> reportParameters, out string errorMessage )
        {
            // Request a report
            var response = SendRequest( new ReportRequest( reportName, reportParameters ).ToXmlElement(), out errorMessage );
            if ( response != null )
            {
                var reportResponse = new ReportResponse( response );
                if ( reportResponse != null )
                {
                    return GetData( reportResponse.ReportId, out errorMessage );
                }
            }

            return null;
        }
Example #2
0
        public DataTable GetReport(string reportName, Dictionary <string, string> reportParameters, out string errorMessage)
        {
            // Request a report
            var response = SendRequest(new ReportRequest(reportName, reportParameters).ToXmlElement(), out errorMessage);

            if (response != null)
            {
                var reportResponse = new ReportResponse(response);
                if (reportResponse != null)
                {
                    return(GetData(reportResponse.ReportId, out errorMessage));
                }
            }

            return(null);
        }