Public Sub loadlabe1() Dim sql_Sel As String Dim hIssId As Integer = 0 ' hIssId = Request.QueryString("patID") Try Dim Tbl As DataTable Dim doc As New ReportDocument() Dim DM As New DataManager sql_Sel = "exec MPI_Select @Reg_No=1 " Tbl = DataManager.ExecuteScalarDS(sql_Sel, Me.SqlCon, "MPI_Select") doc.Load(Server.MapPath("CrystalReport1.rpt")) doc.SetDataSource(Tbl) crypt.ReportSource = doc 'Catch ex As Exception ' labelmsg.Text = ex.ToString() 'FutureFeature() Catch NotImp As NotImplementedException Console.WriteLine(NotImp.Message) End Try End Sub End Class
我是什么尝试过: Public Sub loadlabe1() Dim sql_Sel As String Dim hIssId因为整数= 0 'hIssId = Request.QueryString(patID) 尝试 Dim Tbl As DataTable Dim doc As New ReportDocument() Dim DM As New DataManager sql_Sel =exec MPI_Select @Reg_No = 1 Tbl = DataManager.ExecuteScalarDS(sql_Sel,Me.SqlCon,MPI_Select) doc.Load(Server.MapPath(CrystalReport1.rpt)) doc.SetDataSource(Tbl ) crypt.ReportSource = doc 'Catch ex As Exception 'labelmsg.Text = ex.ToString() 'FutureFeature() Catch NotImp为NotImplementedException Console.WriteLine(NotImp.Message) 结束尝试 结束次级 结束类
What I have tried: Public Sub loadlabe1() Dim sql_Sel As String Dim hIssId As Integer = 0 ' hIssId = Request.QueryString("patID") Try Dim Tbl As DataTable Dim doc As New ReportDocument() Dim DM As New DataManager sql_Sel = "exec MPI_Select @Reg_No=1 " Tbl = DataManager.ExecuteScalarDS(sql_Sel, Me.SqlCon, "MPI_Select") doc.Load(Server.MapPath("CrystalReport1.rpt")) doc.SetDataSource(Tbl) crypt.ReportSource = doc 'Catch ex As Exception ' labelmsg.Text = ex.ToString() 'FutureFeature() Catch NotImp As NotImplementedException Console.WriteLine(NotImp.Message) End Try End Sub End Class
推荐答案当控件进入已声明但尚未完全实现的方法时,抛出NotImplementedException。请在下面找到MSDN中的示例代码示例: - "NotImplementedException" is thrown when the control goes into a method that has been declared but has not been implemented completely. Please find below the sample code example from MSDN :- Sub Main() Try FutureFeature() Catch NotImp As NotImplementedException Console.WriteLine(NotImp.Message) End Try End Sub Sub FutureFeature() ' not developed yet. Throw New NotImplementedException() End Sub
在上面的例子中,FutureFeature方法方法还没有被imp完全删失并且语句Throw New NotImplementedException抛出了代码的catch块中捕获的异常。请逐行调试代码(使用F11)以了解抛出异常的确切方法。请访问msdn.microsoft/en-us/library/system.notimplementedexception(v=vs.110).aspx 了解更多详情
In the above example FutureFeature method method has not been implemented completely and the statement "Throw New NotImplementedException" throws the exception which is being caught in the catch block of your code. Please debug the code line by line (with F11) to know the exact method throwing the exception. Please visit msdn.microsoft/en-us/library/system.notimplementedexception(v=vs.110).aspx for more details
更多推荐
未实现该方法或操作.
发布评论