我使用Telerik Report Designer 2013 Q3设计了一个报告,并将其添加到我的项目文件夹中。现在我需要使用报告的可用参数加载它
为此,我使用了以下代码
Private Sub DeserialiseXmlAndGenerateReport(strFilePath As String) 昏暗设置为新XmlReaderSettings() settings.IgnoreWhitespace = True Dim myReportBook As Telerik.Reporting.ReportBook = New Telerik.Reporting.ReportBook
Using xmlReader As System.Xml.XmlReader = System.Xml.XmlReader.Create(Server.MapPath(strFilePath), settings)
Dim xmlSerializer As New Telerik.Reporting.XmlSerialization.ReportXmlSerializer()
Dim reportWMS As Telerik.Reporting.Report = DirectCast(xmlSerializer.Deserialize(xmlReader), Telerik.Reporting.Report)
With reportWMS
.DocumentMapText = ""
.ReportParameters("projectNo").Value = _projectNo
.ReportParameters("dnHeaderNo").Value = _value
.ReportParameters("transferType").Value = _TransferType
ReportViewer1.DocumentMapVisible = False
ReportViewer1.ShowDocumentMapButton = False
End With
myReportBook.Reports.Add(reportWMS)
End Using
Dim reportSource = New Telerik.Reporting.InstanceReportSource
reportSource.ReportDocument = myReportBook
ReportViewer1.ReportSource = reportSource
ReportViewer1.RefreshReport()
End Sub
提供报告参数的所有值。但没有得到任何输出。没有例外被解雇。但只有一个带工具栏的空白屏幕才会被加载。请帮帮我