问题描述
Private Sub reportviewer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim rpt 作为 新 ReportDocument
Dim rpt As New ReportDocument
Dim ds As 新 DataSet
Dim ds As New DataSet
Dim rptpath 如 String = Application.StartupPath& " \ renport.xml"
Dim rptpath As String = Application.StartupPath & "\report.xml"
ds.ReadXml(rptpath)
ds.ReadXml(rptpath)
rpt.Load(" report.rpt")
rpt.Load("report.rpt")
rpt.SetDataSource(ds)
rpt.SetDataSource(ds)
crv.ReportSource = rpt
crv.ReportSource = rpt
结束 Sub
report.xml文件中包含已确认的数据报告显示但没有数据。这段代码出了什么问题?
The report.xml file has confirmed data in it and the report displays but with no data. What is wrong with this code?
推荐答案
这篇关于没有数据显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!