[]
        
(Showing Draft Content)

C1.Report.FlexReport.Execute

Execute Method

Execute(string)

Executes a VBScript statement in the current report context.

Declaration
public void Execute(string statement)
Parameters
Type Name Description
string statement

A string with VBScript instructions to be executed.

Remarks

This method is similar to the Evaluate(string) method, except it does not return a value.

If the expression string contains invalid syntax or causes an evaluation error, the control raises the ReportError event. In this case, the Handled parameter of the event is set to true, so the exception is ignored by default.

Execute(string, IReportScriptContext)

Executes a VBScript statement.

Declaration
public void Execute(string statement, IReportScriptContext context)
Parameters
Type Name Description
string statement

A string with VBScript instructions to be executed.

IReportScriptContext context

IReportScriptContext interface used to obtain objects available in expression.