随笔分类 -  Fastreport

摘要:文本对象的最重要的功能之一是它不仅能够显示静态文本还能显示表达式。表达式混合在正常的文本内容中,让我们看一个简单的例子,他是如何工作的。在文件对象的内容中,输入以下字符: Hello, World! Today is [DATE]. 当报表运行时显示如下: Hello, World! Today is 01.01.2004. 发生了什么? 当FastReport构建报表,遇到一个在方括号中... 阅读全文
posted @ 2016-05-27 14:46 翼想天开的男孩
摘要:一:格式化一个值 聚合函数的一个特征是,返回的数值没有格式化,如如下例子所示,它使用“SUM”: 数据字段通常返回一个格式化的值,这是一个没有任何变化的“文本”对象所显示的值. 格式化“SUM” 的结果, 让我们用FastReport中的格式化工具. 双击报表上的对象,切换到'Display Format...' 页进行设置: 这个编辑器在左边显示格式的类别, 相应的格式字符显示在... 阅读全文
posted @ 2016-05-27 14:31 翼想天开的男孩
摘要:使用报表变量时,引用“frxVariables”单元。 变量定义在“TfrxVariable” 类: TfrxVariable = class(TCollectionItem) published property Name: String; //Name of a variable property Value: Variant; //Value of a variable... 阅读全文
posted @ 2016-05-27 11:43 翼想天开的男孩
摘要:一:加载和保存报表 报表默认保存在项目窗体文件中,大多数情况下,没有更多的操作要深圳市, 因此,你不需要采取特别措施来载入报告.如果你决定保存报表到文件或是数据库中 (这样更灵活, 比如修改报表不用重编译程序), 你可以使用 “TfrxReport” 组件是加载和保存方法: function LoadFromFile(const FileName: String; ExceptionIfNot... 阅读全文
posted @ 2016-05-27 10:19 翼想天开的男孩
摘要:Writing Custom Wizards 编写自定义的向导 You can extend FastReport's functionality with the help of custom wizards. FastReport, for example, contains the standard “Report Wizard” which is called from the ... 阅读全文
posted @ 2016-05-26 16:38 翼想天开的男孩
摘要:Using Custom Functions in a Report 在报表中使用自己义函数 FastReport has a large number of built-in standard functions for use in report designs. FastReport also allows custom functions to be written and us... 阅读全文
posted @ 2016-05-26 16:32 翼想天开的男孩
摘要:Writing Custom DB Engines 编写定制的DB引擎 FastReport can build reports not only with data sourced from a Delphi application but also from data sources (connections to DBs, queries) created within the r... 阅读全文
posted @ 2016-05-26 16:18 翼想天开的男孩
摘要:Writing Property Editors 编写属性编辑器 When you select a component in the designer its properties are displayed in the object inspector. You can create your own editor for any property. The “Font” prope... 阅读全文
posted @ 2016-05-26 15:56 翼想天开的男孩
摘要:Writing Component Editors 编写组件的编辑器 All common control editors (opened from a control's context menu or by double-clicking) create blank OnClick event handlers by default. This behavior can be alt... 阅读全文
posted @ 2016-05-26 15:20 翼想天开的男孩
摘要:摘要:介绍如何编写自定义的控件,用在报表的窗体上(如Edit,Button等) Writing Custom Common Controls 编写自定义控件 FastReport contains a set of common controls which can be placed on dialogue forms inside reports. They are as follo... 阅读全文
posted @ 2016-05-26 12:01 翼想天开的男孩
摘要:摘要:简单介绍了如何编写一个FastReport的组件,并且注册到FastReport中使用。 Writing Custom Report Components 编写自定义报表组件 FastReport has a large number of components that can be placed on a report design page. They are: text, ... 阅读全文
posted @ 2016-05-26 11:38 翼想天开的男孩
摘要:"TfrxComponent" is the base class for all FastReport components. Objects of this type have attributes such as “coordinates”, “size”, “font” and “visibility” and have lists of subordinate objects.... 阅读全文
posted @ 2016-05-26 10:38 翼想天开的男孩