适用于所有报表Web Appln C#的单晶报表查看器 [英] Single Crystal Report Viewer for All Report Web Appln C#

查看:104
本文介绍了适用于所有报表Web Appln C#的单晶报表查看器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Frnds,

在我的Web应用程序中,我将为不同的目的生成多个报告。如何使用单个晶体报告器来显示我需要的所有报告。是否可能。为每个报告使用单独的crystalreportviewer或者为所有报告使用单晶报告查看。给出一些例子。

Hi Frnds,
In my Web Application,I am going to generate multiple Reports for different purpose.How to use single crystalreportviewer to show all the reports whenever i need.Is it possible or not.Using Separate crystalreportviewer for every Report is good or single crystalreportviewer for All Report.Give Some Examples.

推荐答案

为不同目的生成多个报告。如何使用单个crystalreportviewer

嗯,这是一般的方式 - 有一个reportviewer并在其中显示所需的报告。您所要做的就是在运行时定义reportviewer源报告。



查看器是一个控件,它将显示我们要求的报告。您可以根据单个查看器的需要更改报告。您将按照您的定义一次查看一个报告。



示例:

generate multiple Reports for different purpose.How to use single crystalreportviewer
Well, that''s the general way - have one reportviewer and show the needed report in it. All you have to do is define the reportviewer source report at runtime.

Viewer is a control that will show a report that we ask it to. You can change the report as per need for the single viewer. You will view one report at a time as defined by you in it.

Example:
ReportDocument _rdStudents = new ReportDocument();
string reportPath = Server.MapPath("Students_CrystalReport.rpt");
_rdStudents.Load(reportPath);
	 
_rdStudents.SetDataSource(dt);
CrystalReportViewer1.ReportSource = _rdStudents;



如果需要,请参阅:运行时使用Asp.net C#将数据动态绑定到水晶报表中[ ^ ]


If needed refer: Runtime dynamically bind data into a crystal report using Asp.net C#[^]


这篇关于适用于所有报表Web Appln C#的单晶报表查看器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆