我有一份报告,其数据来自两个储存的程序。 因此,需要为编写报告确定这两个数据来源。 但是,只有一份特别报告,即报告。 只有一个数据来源进行适当工作。 为了确定数据来源,我撰写了类似守则:
dim reportdocument as ReportDocument
Dim reportPath As String = Server.MapPath("CrystalRptsReport.rpt")
ReportDocument.Load(reportPath)
Function for Setting the Connection
SetDBLogonForReport(MyConnectionInfo, ReportDocument)
dim dt1 as datatable=Datasource1
dim dt2 as datatable=Datasource2
dt1.merge(dt2)
reportdocument.setDataSource(dt1)
CrystalReportViewer.ReportSource=reportdocument
***************************************************
But, the report is not generating.it shows the following error
The Report requires additional information
Servername:- Server
Database:- Database
UserID:-
Password:-
But the reports which have only one SP, ie.only one datasource works properly.What colud be reason for this error?
我已经编写了这份报告。 因此,可以合并两个<代码>。 SPs,因为它可以更新报告领域。 请提出咨询意见。