In this lesson, you will learn how to create reports at runtime. A report showing a list of Tasks will be created in the WinForms application at runtime and then will be available for printing in both WinForms and ASP.NET applications.

在本课中,您将学习如何在运行时创建报表。在运行时,将在 WinForms 应用程序中创建显示任务列表的报表,然后在 WinForms 和ASP.NET应用程序中打印。

Tip 提示
You can also create a new report in an ASP.NET application (see Create and View Reports in an ASP.NET Application).
您还可以在ASP.NET应用程序中创建新报表(请参阅在ASP.NET应用程序中创建和查看报表)。

1.Run the WinForms application and go to the Reports List View.

运行 WinForms 应用程序并转到"报表列表"视图。

2.Create a new report by clicking the New button ().

3.Name this report "Tasks Report", set the Data Type to "Task" and click Next.

单击"新建"按钮(button_new)创建新报表。

命名此报告"任务报告",将数据类型设置为"任务",然后单击"下一步"。

Note 注意
The Data Type drop-down list shows only those business classes that have the DefaultClassOptionsAttribute or VisibleInReportsAttribute applied.
"数据类型"下拉列表仅显示应用了默认类选项属性或"可见InReports属性"的业务类。

4.Choose the "Table Report" type and click Next.

选择"表报表"类型,然后单击"下一步"。

5.Add the following fields.

添加以下字段。

  • Subject
  • Priority
  • Status
  • Percent Completed
  • 主题
  • 优先
  • 地位
  • 已完成百分比

  • Click Next to skip the grouping configuration, summary functions, and report page settings.
  • 单击"下一步"可跳过分组配置、摘要函数和报表页设置。
  • Choose the Azure report color scheme and click Next.
  • 选择 Azure 报表配色方案,然后单击"下一步"。
  • Set the title to "Tasks" and click Finish.
  • 将标题设置为"任务",然后单击"完成"。
  • After clicking Finish, the Runtime Report Designer will be invoked.
  • 单击"完成"后,将调用运行时报表设计器。
  • Customize the report, save it by clicking the Save button (), and open it from the Reports List View. This report will also be available in the ASP.NET version of the application.

  • 自定义报表,通过单击"保存"按钮(btn_report_save)保存报表,然后从"报表列表"视图打开它。此报告还将在应用程序的ASP.NET版本中提供。

Create a Report at Runtime 在运行时创建报表的更多相关文章

  1. 【翻译】利用Qt设计师窗体在运行时创建用户界面(Creating a user interface from a Qt Designer form at run-time)

    利用Qt设计师窗体在运行时创建用户界面 我们利用Calculator窗体例子中创建的窗体(Form)来展示当一个应用(application)已经生成后,是可以在其运行时产生与例子中相同的用户界面. ...

  2. 在Stimulsoft Reports.Net运行时修改报表的连接字符串

    怎么在Stimulsoft Reports.Net运行时修改报表的连接字符串?怎么改呀 C# StiReport report = new StiReport(); report.Load(" ...

  3. RunTime(运行时机制)

    1>runtime实现的机制是什么,怎么用,一般用于干嘛? 这个问题我就不跟大家绕弯子了,直接告诉大家, runtime是一套比较底层的纯C语言API, 属于1个C语言库, 包含了很多底层的C语 ...

  4. Run-time Settings 运行时设置

    1.执行顺序设置和执行概率设置 2.迭代之间的等待时间设置 3.日志设置 4.思考时间 5.杂项 线程进程选择: 一般服务器没有安全机制选择线程执行 但是有安全机制的话 比如第一个进程50个线程 第二 ...

  5. fastReport 运行时设计报表 (mtm)

    设计报表 通过“TfrxReport.DesignReport”方法调用报表设计器.你必须在你的项目中包含报表设计器 (必要条件是:要么使用“TfrxDesigner”组件,要么增加“frxDesgn ...

  6. vue 动态创建组件(运行时创建组件)

    function mountCmp (cmp, props, parent) { if (cmp.default) { cmp = cmp.default } cmp = Vue.extend(cmp ...

  7. [UE4]运行时创建Actor

  8. iOS运行时 -- Runtime(摘抄自网络)

    运行时(iOS) 一.什么是运行时(Runtime)? 运行时是苹果提供的纯C语言的开发库(运行时是一种非常牛逼.开发中经常用到的底层技术) 二.运行时的作用? 能获得某个类的所有成员变量 能获得某个 ...

  9. Objective-C Runtime 运行时之一:类与对象

    Objective-C语言是一门动态语言,它将很多静态语言在编译和链接时期做的事放到了运行时来处理.这种动态语言的优势在于:我们写代码时更具灵活性,如我们可以把消息转发给我们想要的对象,或者随意交换一 ...

随机推荐

  1. gulp+webpack+angular1的一点小经验(第一部分gulp与webpack的整合)

    时间匆匆如流水继上周熟悉了gulp的初步安装与环境配置以后,我的项目又进入了新的阶段! 这篇文章将把我这一周遇到的一些问题,以及解决的方式做一个小小的总结,不一定记的完整,但都是个人的一点经验,分享给 ...

  2. 通过Javascript 创建POST提交, 无页面刷新下载

    前端准备: //Download the template through "POST" request function getTargertContainer() { var ...

  3. Java 基于Spire.Cloud.Excel 将Excel转为PDF

    Spire.Cloud.Excel Sdk 提供GeneralApi接口和WorkbookApi接口,支持将本地Excel和云端Excel文档转换为ODS, PDF, XPS, PCL, PS等格式. ...

  4. SpringBoot-了解微服务(二)

    什么是微服务? 微服务是一种架构风格,它要求我们在开发一个应用的时候,这个应用必须构建成一系列小服务的组合: 可以通过http的方式进行互通. 要说微服务架构,先了解一下以前的单体应用架构 单体应用架 ...

  5. KubeSphere 日志备份与恢复实践

    为什么需要日志备份 KubeSphere 日志系统使用 Fluent Bit + ElasticSearch 的日志采集存储方案,并通过 Curator 实现对 Index 的生命周期管理,定期清理久 ...

  6. FIve in a row

    Alice and Bob play 5-in-a-row game. They have a playing field of size 10 × 10. In turns they put eit ...

  7. AtCoder-3856

    An adult game master and N children are playing a game on an ice rink. The game consists of K rounds ...

  8. Binary Search Tree analog

    Description Binary Search Tree, abbreviated as BST, is a kind of binary tree maintains the following ...

  9. require.context批量引入文件

    require.context 是什么 require.context 是由webpack内部实现,require.context在构建时,webpack 在代码中进行解析. 当需要引入文件夹内多个文 ...

  10. ARTS-S shell脚本实现循环

    #!/bin/bash i=0 while [ "$i" != "100" ] && [ "$RESP" != " ...