See Also

ActiveReport Class  | ActiveReport Members  | AddNamedItem  | Script  | AddCode

Language

Visual Basic

C#

Show All

scriptRef
Name of the assembly to be added to the scripting run-time context.
See Also Languages ActiveReports Send feedback to Data Dynamics

AddScriptReference Method

Adds a reference to the specified assembly to be loaded into the scripting run-time context.

[Visual Basic]
Public Sub AddScriptReference( _    ByVal scriptRef As String _ )
[C#]
public void AddScriptReference(    string scriptRef );

Parameters

scriptRef
Name of the assembly to be added to the scripting run-time context.

Remarks

ActiveReports loads assemblies that are referenced in the application.  You can use this method to add additional assemblies to be used in scripting that are not part of the application running the report.

Example

[C#] 

private void runReport()  
{  
      ActiveReport1 rpt = new ActiveReport1();  
      rpt.AddScriptReference("System.Data");  
      rpt.Run();  
      this.viewer1.Document = rpt.Document;  
}  
 
 

[Visual Basic] 

Private Sub runReport()
      Dim rpt As New ActiveReport1()
      rpt.AddScriptReference("System.Data")
      rpt.Run()
      Me.viewer1.Document = rpt.Document
End Sub

See Also

ActiveReport Class  | ActiveReport Members  | AddNamedItem  | Script  | AddCode

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.