ReportExcetionService and ReportParameter.ErrorMessage usage

Unanswered ReportExcetionService and ReportParameter.ErrorMessage usage

  • Friday, March 08, 2013 12:41 PM
     
     

    Hi,

    I am try to get the custom error message "This is a Test Error" using ReportExcetionService object and ReportParameter.ErrorMessage Property. But I always get Null as value returned from ReportParameter.ErrorMessage.

    I am using below function to validate one of report parameter.

    Public Function CheckInt(sInt as Integer) as Integer
    Dim msg as String
    msg = ""
    If (sInt > 100) Then
    msg="value cannot be greater than 100"
    End If
    If msg <> "" Then
    Err.Raise(7,"This is a Test Error")
    End If
    End Function


    Suresh Thakur