Click here to Skip to main content
15,897,291 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
VB
 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


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
Posted
Updated 30-Jul-16 2:24am
Comments
OriginalGriff 30-Jul-16 4:05am    
And what is the exact error?
What line is it on?

1 solution

"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 :-
VB.NET
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


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 https://msdn.microsoft.com/en-us/library/system.notimplementedexception(v=vs.110).aspx
for more details
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900