2012-01-23 327 views
0

可能重複:
How to use SubReport in XtraReport?XtraReport犯規顯示子報告

我有我的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() 

回答

2

Go t it ..我只是把一個關係在datatable ..