本文介绍了没有数据显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


私人 Sub reportviewer_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) 句柄 MyBase .Load

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?

推荐答案


这篇关于没有数据显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 01:13