Data Transfer Problem
I'm happy you can be helpful to me, I wrote the following codes.
How can I fix the error Object reference not set to an instance of an object.
How can I fix the error Object reference not set to an instance of an object.
    Private Sub PrntPvw_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrntPvw.Click
        ConNPos()
        OLEAdp2 = New OleDbDataAdapter(SqlLst, OLEConN)
        FrxDtSet = New DataSet With {.DataSetName = "MACIPAdress"}
        OLEAdp2.Fill(FrxDtSet)
        FReport = New Report
        FReport.Load(RprtName)
        FReport.RegisterData(FrxDtSet)
        MstrDt = New FastReport.DataBand
        TxtObj = New FastReport.TextObject
        MstrDt = FReport.FindObject("DataTbl")
        TxtObj = FReport.FindObject("Sample")
        MstrDt.DataSource = FReport.GetDataSource("MACIPAdress")
        For i As Integer = 0 To FrxDtSet.Tables(0).Rows.Count - 1
            TxtObj.Text = FrxDtSet.Tables(0).Rows(0).Item(0)
        Next
        FReport.Show()
        FReport.Dispose()
        DisConnect()
    End Sub
Comments
the correct form of a list
codes are as follows:
Please help