internal override void ThrowExceptionForQueryBackedParameter(ReportProcessingException_FieldError aError, string aParamName, int aDataSourceIndex, int aDataSetIndex, int aFieldIndex, string propertyName)
 {
     throw new NotSupportedException();
 }
 public abstract void ThrowExceptionForQueryBackedParameter(ReportProcessingException_FieldError aError, string aParamName, int aDataSourceIndex, int aDataSetIndex, int aFieldIndex, string propertyName);
 public override void ThrowExceptionForQueryBackedParameter(ReportProcessingException_FieldError aError, string aParamName, int aDataSourceIndex, int aDataSetIndex, int aFieldIndex, string propertyName)
 {
     AspNetCore.ReportingServices.ReportProcessing.DataSet dataSet = this.m_report.DataSources[aDataSourceIndex].DataSets[aDataSetIndex];
     throw new ReportProcessingException(ErrorCode.rsReportParameterQueryProcessingError, aParamName.MarkAsPrivate(), propertyName, dataSet.Fields[aFieldIndex].Name.MarkAsModelInfo(), dataSet.Name.MarkAsPrivate(), ReportRuntime.GetErrorName(aError.Status, aError.Message));
 }
Esempio n. 4
0
        private Microsoft.ReportingServices.ReportIntermediateFormat.RecordField HandleFieldError(ReportProcessingException_FieldError aException, int aFieldIndex, string aFieldName)
        {
            Microsoft.ReportingServices.ReportIntermediateFormat.RecordField recordField = null;
            bool      flag = false;
            FieldInfo orCreateFieldInfo = m_dataSetInstance.GetOrCreateFieldInfo(aFieldIndex);

            if (m_dataRowsRead == 0 && DataFieldStatus.UnSupportedDataType != aException.Status && DataFieldStatus.Overflow != aException.Status)
            {
                orCreateFieldInfo.Missing = true;
                recordField = null;
                flag        = true;
                m_odpContext.ErrorContext.Register(ProcessingErrorCode.rsMissingFieldInDataSet, Severity.Warning, Microsoft.ReportingServices.ReportProcessing.ObjectType.DataSet, m_dataSet.Name, "Field", aFieldName.MarkAsModelInfo());
            }
            if (!flag)
            {
                recordField                    = new Microsoft.ReportingServices.ReportIntermediateFormat.RecordField();
                recordField.FieldStatus        = aException.Status;
                recordField.IsAggregationField = false;
                recordField.FieldValue         = null;
            }
            if (!orCreateFieldInfo.ErrorRegistered)
            {
                orCreateFieldInfo.ErrorRegistered = true;
                if (DataFieldStatus.UnSupportedDataType == aException.Status)
                {
                    if (!m_odpContext.ProcessReportParameters)
                    {
                        m_odpContext.ErrorSavingSnapshotData = true;
                    }
                    m_odpContext.ErrorContext.Register(ProcessingErrorCode.rsDataSetFieldTypeNotSupported, Severity.Warning, Microsoft.ReportingServices.ReportProcessing.ObjectType.DataSet, m_dataSet.Name, "Field", aFieldName.MarkAsModelInfo());
                }
                else
                {
                    m_odpContext.ErrorContext.Register(ProcessingErrorCode.rsErrorReadingDataSetField, Severity.Warning, Microsoft.ReportingServices.ReportProcessing.ObjectType.DataSet, m_dataSet.Name, "Field", aFieldName.MarkAsModelInfo(), aException.Message);
                }
            }
            return(recordField);
        }