| Visual Basic (Declaration) | |
|---|---|
Public Property ExpressionErrorMessage As String | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public string ExpressionErrorMessage {get; set;} | |
Return Value
String. The default value is null.| C# | Copy Code |
|---|---|
private void arViewer_Load(object
sender, System.EventArgs e) | |
| Visual Basic | Copy Code |
|---|---|
Private Sub arViewer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arViewer.Load | |
If this property is not set and an expression can't be parsed, or if you get a divide-by-zero type exception, ActiveReports will throw a ReportScriptException and stop the report from running.
When this property is set to a valid string, the engine stops throwing exceptions and instead displays the specified string (like Excel). Set it to ### and try Sales/0 to test.
Persistence: There is a new attribute called "ExprError" in .rpx files.