Sql server Crystal Report仅显示DetailReport部分VB.NET中的第一条记录&;SQL Server

Sql server Crystal Report仅显示DetailReport部分VB.NET中的第一条记录&;SQL Server,sql-server,vb.net,crystal-reports,Sql Server,Vb.net,Crystal Reports,我的数据库中有两个表,saleinvoicedetails和saleinvoicesinventoryrowdetails 我的表salesinventoryrowdetails中有6条记录,其中Crystal Reports仅显示一条(第一条记录) 我通过设置断点进行检查。数据集填充了所有数据,但除了第一条记录(只有一行)外,它没有出现在Crystal Report中 请需要善意的帮助来解决这个问题 谢谢 Dim row As DataRow = GridView1.GetDataRow(Gr

我的数据库中有两个表,
saleinvoicedetails
saleinvoicesinventoryrowdetails

我的表
salesinventoryrowdetails
中有6条记录,其中Crystal Reports仅显示一条(第一条记录)

我通过设置断点进行检查。数据集填充了所有数据,但除了第一条记录(只有一行)外,它没有出现在Crystal Report中

请需要善意的帮助来解决这个问题

谢谢

Dim row As DataRow = GridView1.GetDataRow(GridView1.FocusedRowHandle)

    Me.Cursor = Cursors.WaitCursor

    Dim objRpt As New XtraReport1
    Dim ds As New SalesInvoiceDataSet
    Dim adp1 As New SqlClient.SqlDataAdapter("Select * From SalesInvoiceDetails Where InvoiceNo=N'" & row("InvoiceNo") & "'", DAL.OpenSqlConnection)
    adp1.Fill(ds, "SalesInvoiceDetails")

    Dim adp2 As New SqlClient.SqlDataAdapter("Select * From SalesInvoicesInventoryRowDetails Where InvoiceNo=N'" & row("InvoiceNo") & "' order by Sno", DAL.OpenSqlConnection)
    adp2.Fill(ds, "SalesInvoicesInventoryRowDetails")

    DAL.CloseConnection()

    objRpt.DataSource = ds
    Dim s As New SalesInvoicePrintForm
    s.DocumentViewer1.DocumentSource = objRpt
    s.Show()

你能给我看看水晶报告吗?附加图像?同时也交叉检查表达。嗨,我试着添加图片和编辑文章。但无法连接。你能给我指个路吗?尸体不见了。这是浏览图片后出现的错误。