2012-01-23 2 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

이동 그게 .. 둘 다에 관계를 넣었 어. datatable ..

관련 문제