ActiveReports使用教程:如何在Asp.net 中集成 ActiveReports

ActiveReports正式版

HtmlViewer 是 WebViewer 控件的默认类型,提供 表可滚动视图。它包括工具栏,以及侧边栏(包含参数、目录和搜索面板)。

使用HtmlViewer展示 表

一. 按照如图所示步骤创建 ASP.NET 工程:

ActiveReports使用教程:如何在Asp.net 中集成 ActiveReports

二.在工程中添加ActiveReports 表文件

1、从 Visual Studio项目菜单 (或在 Web 项目中的 站菜单),选择添加新项。

ActiveReports使用教程:如何在Asp.net 中集成 ActiveReports

2、选择您想要添加 表类型

ActiveReports使用教程:如何在Asp.net 中集成 ActiveReports

3、添加 表数据源

打开视图里面的 表资源管理器,添加数据源

ActiveReports使用教程:如何在Asp.net 中集成 ActiveReports

填写数据链接信息

ActiveReports使用教程:如何在Asp.net 中集成 ActiveReports

4、添加数据集

打开视图里面的 表资源管理器,在数据源下添加数据集

ActiveReports使用教程:如何在Asp.net 中集成 ActiveReports

增加查询语句

ActiveReports使用教程:如何在Asp.net 中集成 ActiveReports

5、添加Table到 表中

ActiveReports使用教程:如何在Asp.net 中集成 ActiveReports

Table可以直接选取需要的字段

ActiveReports使用教程:如何在Asp.net 中集成 ActiveReports

三.浏览 表

1、从 Visual Studio项目菜单 (或在 Web 项目中的 站菜单),选择添加新项。

ActiveReports使用教程:如何在Asp.net 中集成 ActiveReports

2、在 “WebForm1.aspx” 页面中添加 ActiveReports Viewer 表浏览器:

ActiveReports使用教程:如何在Asp.net 中集成 ActiveReports

3、在 “WebForm1.aspx” 页面中调整 ActiveReports Viewer 表的大小:

ActiveReports使用教程:如何在Asp.net 中集成 ActiveReports

4、在“WebForm1.aspx.cs”添加代码映射 表到 表浏览器,代码如下:

或者,设置WebViewer 的 ReportName属性

四.运行项目查看效果:

ActiveReports使用教程:如何在Asp.net 中集成 ActiveReports

本教程内容就是这样了,希望对您有所帮助~您可以下载ActiveReports试用版免费体验!

相关内容推荐:

ActiveReports使用教程:如何借助参数 表设置下拉框和数据过滤


想要购买ActiveReports正版授权,或了解更多产品信息请点击【咨询在线客服】

ActiveReports使用教程:如何在Asp.net 中集成 ActiveReports

标签:

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2020年1月13日
下一篇 2020年1月13日

相关推荐

发表回复

登录后才能评论