如何将数据库绑定到水晶报表? [英] how to bind database to crystal report?

查看:200
本文介绍了如何将数据库绑定到水晶报表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有C#程序,我有要绑定到Crystal Report的数据集。

i have C# program, i have DataSet that i want to bind to crystal report.

操作方法?

推荐答案

从添加新项>数据集创建类型化的数据集,并为数据集
a提供有用的名称。

Create a Typed DataSet from the "Add New Item > DataSet and give the dataset a useful name.

在Server Explorer中,将包含所需字段的视图拖到dataSet的
中。

In Server Explorer, drag a view with the fields you want in the report onto the dataSet.

使用向导创建一个新的Crystal Report。

Create a new Crystal Report using the Wizard.

从报表库中,选择标准,然后单击确定。

From the Report Gallery, choose "Standard" and click 'OK'

在数据标签中,单击更多数据源的节点

In the 'Data' tab, click the node for "More Data Sources"

单击ADO .Net(XML)的节点

Click the node for ADO .Net (XML)

选中使用Visual Studio数据类框

Check the box for 'Use Visual Studio Data Class'

在 Visual Studio数据类名称组合框中,选择刚刚创建的
数据集的名称。

In the 'Visual Studio Data Class name' combobox, select the name of the dataset you just created.

单击完成

选择您刚刚添加到$中的数据集名称下显示的表格b $ b的数据标签,然后点击插入表格

Choose the table displaying under the name of the dataset you just added to the 'Data' tab and click 'Insert Table'

设置报告格式。

这篇关于如何将数据库绑定到水晶报表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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