使用水晶报表 [英] using crystal reports

查看:105
本文介绍了使用水晶报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何使用水晶报表...任何人都可以在c#中解释报表设计吗?

how we can use crystal reports...can any one explain report designing in c#

推荐答案

此链接可能会帮助您:)
使用其功能组,图形,交叉表和子报表逐步创建Crystal报表 [ ^ ]
crystal-reports-subreports [如何使用Visual Studio 2005在Crystal Reports中动态加载图像 [
this link may help you :)
Step by Step Creation of Crystal Report using its Features Group, Graph, Cross-Tab and Sub Report[^]
crystal-reports-subreports[^]
How to dynamically load images in Crystal Reports using Visual Studio 2005[^]


首先,您需要添加水晶报表在您的项目中
1)右键单击VS中的项目->添加->新建项->选择报告-> CrystalReport->选择空白Crystal报告以添加空白报告

2)要将数据发送到Crystal报表,您应该具有数据集和数据表,创建新的数据集并将新的数据表添加到数据集中.

3)现在选择水晶报表,然后转到字段资源管理器"
右键单击数据库字段->数据库专家->项目数据-> ADO.net数据集->选择在第2步中创建的数据集

4)现在数据表将显示在数据库专家中(扩展后)

5)从数据表中选择字段,然后将它们放在(拖动)到Crystal Report上,按您的意愿
6)添加新表格并将Crystal Report Viewer放置在新表格上

7)将数据发送到数据集(datatable)

first you need to add crystal report in your project
1) Right click on your project in VS-->Add-->New Item-->Select Reporting-->CrystalReport-->Select Blank Crystal report to add blank report

2)TO send data to crystal report you should have dataset and datatable,create new dataset and add new datatable into dataset.

3) now select crystal report and go to Field explorer
right click database field-->database expert-->project data-->ADO.net Datasets -->select dataset created in step 2

4)now datatable will be displayed in database expert (after expanding)

5)select the fields from datatable and put them on (drag) on crystal report arrange as u wish
6)add new form and place crystal report viewer on new form

7) send data to dataset (datatable)

formName formName = new formName ();
                    CrystalReportName rpt = new CrystalReportName ();
                    rpt.SetDataSource(dt);//dt is your datatable wich contains data
                    rpt.Refresh();
                    formName .crystalReportViewer1.ReportSource = rpt;
                    formName .Show();




享受




enjoy


请通过以下链接...

使用带有数据集的C#创建Crystal报表
在C#中使用Crystal Reports
http://www.c-sharpcorner.com/Articles/ArticleListing.aspx? SectionID = 1& SubSectionID = 61
http://csharp.net-informations.com/crystal-reports/csharp- crystal-reports-stepbystep.htm
Please go through following links...

Creating Crystal Reports using C# with Datasets
Working with Crystal Reports in C#
http://www.c-sharpcorner.com/Articles/ArticleListing.aspx?SectionID=1&SubSectionID=61
http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-stepbystep.htm


这篇关于使用水晶报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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