AddScriptReference Method
Adds a reference to the specified assembly to be loaded into the scripting run-time context.
public void AddScriptReference(
string
)
'Declaration
Public Sub AddScriptReference( _
ByVal As String _
)
Parameters
- scriptRef
- Name of the assembly to be added to the scripting run-time context.
private void runReport()
{
SectionReport1 rpt = new SectionReport1();
rpt.AddScriptReference("System.Data.dll");
rpt.Run();
this.viewer1.Document = rpt.Document;
}
Private Sub runReport()
Dim rpt As New SectionReport1()
rpt.AddScriptReference("System.Data.dll")
rpt.Run()
Me.viewer1.Document = rpt.Document
End Sub