使用报告查看器创建报告 [英] Creating reports using reports viewer

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

问题描述

嘿,开发人员.

我在Visual Studio中使用reportsviewer控件创建报表时遇到困难.我正在用C#开发一个简单的订单管理系统,并希望在报表中显示Access 2007数据库中的记录,但是我无法很好地指导启动报表部分.

我需要的是有人逐步向我解释如何进行.从那里我会很好.谢谢

请帮助

Hey developers .

I am having difficulties creating reports using the reportsviewer control in visual studio. I am developing a simple orders management system in C# and would like to display records in access 2007 database in a report but I cant get good direction to start up the reporting part.

What I need is somebody explaining to me step by step on how to go about it . I will be good from there. Thanks

Please help

推荐答案

确定,请按以下步骤操作:

将RDLC文件添加到要在其中显示报告的解决方案/项目中

将数据源添加到项目中.这应连接到您提到的Access数据库


将必要的信息拖放到RDLC上.


将报表查看器控件添加到要在其上显示报表的表单.

向该报表查看器控件提供数据源和报表名称.

并启动该应用程序.将显示您的报告.

[
Ok here are the Steps:

Add an RDLC file to your Solution/Project where you want to display the report

Add a datasource to your project.This should connect to the Access Database that you were mentioning


Drag and Drop the necessary information on to the RDLC.


Add a report viewer control to the form on which you want to display the report.

To that report viewer control provide the datasource and report name.

and launch the application.Your report is displayed.

[Walkthrough in Creating Reports]


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

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