0
這是我的代碼(正常工作):如何通過反射將參數傳遞給exe文件?
Private Sub open_report2()
Dim oType As System.Type
Dim oAssembly As System.Reflection.Assembly
Dim oObject As System.Object
oAssembly = Reflection.Assembly.LoadFrom("C:\VB.NET\report3\report3\bin\Debug\report3.exe")
oType = oAssembly.GetType("report3.r1")
oObject = Activator.CreateInstance(oType)
oObject.show()
End Sub
如何參數傳遞給report3
?
或
能report3
看到在調用程序中的變量,如果是這樣,如何?