0

可能重复:
如何在 XtraReport 中使用 SubReport?

我的 XtraReport 有问题,它不显示子报告,但它显示主报告,这是我的代码

Dim report As New XSalesReport()
    Dim ds As New DSProducts
    Dim sSQL As New System.Text.StringBuilder
    sSQL.AppendLine("SELECT  ")
    sSQL.AppendLine("*")
    sSQL.AppendLine("FROM PaymentTransactions ")

    Dim zSQL As New System.Text.StringBuilder
    zSQL.AppendLine("SELECT  ")
    zSQL.AppendLine("*")
    zSQL.AppendLine("FROM DailyTransactions ")

    CreateWaitDialog()
    SetWaitDialogCaption("Loading Report Data")
    Using SQLconnect As New SQLiteConnection(g_constring)
        SQLconnect.Open()
        Dim SQLAdapter As New SQLiteDataAdapter(sSQL.ToString, SQLconnect)
        SQLAdapter.Fill(ds.Payment)
        Dim SQLAdapter1 As New SQLiteDataAdapter(zSQL.ToString, SQLconnect)
        SQLAdapter1.Fill(ds.DailyTransaction)
    End Using
    report.DataSource = ds
    report.ShowPreview()
    CloseWaitDialog()
4

1 回答 1

2

明白了..我只是在两者中都建立了关系datatable..

于 2012-01-24T04:59:14.417 回答