如果到数据库的连接不是用于代码和数据源的,该如何创建报告(ReportViewer)? [英] How to create a report (ReportViewer) if the connection to the DB is not for code and data source?

查看:146
本文介绍了如果到数据库的连接不是用于代码和数据源的,该如何创建报告(ReportViewer)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果到DB的连接不用于代码和数据源,如何创建报表(ReportViewer)?
它是通过添加数据源来完成的,但问题是连接..我通过代码将其连接到Visual Basic.Net中.

How to create a report (ReportViewer) if the connection to the DB is not for code and data source?
it as is done by adding a data source but the matter is that the connection .. I have it by code This in Visual Basic.Net

推荐答案

本地报告.并将dataSource(DataSet)分配给报表.希望对您有帮助.

http://forums.asp.net/t/1184635.aspx/1 [ ^ ]
You could process the report locally. And assign the dataSource (DataSet) to the report. I hope this helps you.

http://forums.asp.net/t/1184635.aspx/1[^]


创建数据表在数据集中并填充数据表中的值,最后将该数据列添加到Crystal Report ...中.
create datatable in dataset and fill the values in datatable, filnally add that data columns to crystal report.... done


这篇关于如果到数据库的连接不是用于代码和数据源的,该如何创建报告(ReportViewer)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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