0

我正在使用 Devexpress xtraReports 我的问题是图表不显示任何我将系列数据源设置为数据表的内容。图表也是如此,但我仍然不明白。我不知道问题是什么。

顺便说一句,这是我的代码

Dim report As New TopItems
    Dim ds As New DataSet1
    Dim zSQL As New System.Text.StringBuilder
    zSQL.AppendLine("SELECT ProductName,ProductCode,COUNT(*) AS OrderCount ")
    zSQL.AppendLine("FROM DailyTransactions GROUP BY ProductCode ORDER BY OrderCount DESC ")
    zSQL.AppendLine("LIMIT 5")
    CreateWaitDialog()
    SetWaitDialogCaption("Loading Report Data")
    Using SQLconnect As New SQLiteConnection(g_constring)
        SQLconnect.Open()
        Dim SQLAdapter As New SQLiteDataAdapter(zSQL.ToString, SQLconnect)
        SQLAdapter.Fill(ds.TopItems)
    End Using
    CloseWaitDialog()
    report.DataSource = ds
    report.ShowPreviewDialog()
4

0 回答 0