指定したアセンブリの参照を追加して、スクリプトの実行時にロードされるようにします。
シンタックス
public void AddScriptReference(
string
)
'宣言
Public Sub AddScriptReference( _
ByVal As String _
)
パラメータ
- scriptRef
- スクリプトが実行される時にスクリプト内でアセンブリが使用できるように、そのアセンブリ名を指定。
使用例
private void runReport()
{
SectionReport1 rpt = new SectionReport1();
rpt.AddScriptReference("System.Data");
rpt.Run();
this.viewer1.Document = rpt.Document;
}
Private Sub runReport()
Dim rpt As New SectionReport1()
rpt.AddScriptReference("System.Data")
rpt.Run()
Me.viewer1.Document = rpt.Document
End Sub
参照