English 中文(简体)
为App.net的报告设定多个数据来源
原标题:Setting multiple datasource for a report in Asp.net

我有一份报告,其数据来自两个储存的程序。 因此,需要为编写报告确定这两个数据来源。 但是,只有一份特别报告,即报告。 只有一个数据来源进行适当工作。 为了确定数据来源,我撰写了类似守则:


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,因为它可以更新报告领域。 请提出咨询意见。

问题回答

你们只能拿出一个数据来源来报告,但你越好,就会一劳永逸地向你们报告。

Its better to combine your two Stored procedure to one




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签