how to bind database to crystal report?

我的梦境 提交于 2019-12-13 03:39:37

问题


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

how to do it ?


回答1:


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

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

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"

Click the node for ADO .Net (XML)

Check the box for 'Use Visual Studio Data Class'

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

click 'Finish'

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

Format your report.



来源:https://stackoverflow.com/questions/1668953/how-to-bind-database-to-crystal-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!