关于fastreport中的checkbox

gelll 2003-08-21 09:12:00
数据库为sqlserver 字段aa 类型为char(1) 值为0,1
我想用一个checkbox控件来表明值的内容

我建立了master data band,放入了checkbox 其中将属性中datafield 改为 [Query1."aa"] checkstyle 为 cscheck
checkcolor为clwhite,

在master data band 中写入程序如下
checkstyle := cscheck ;
checkcolor:=clblack;
但结果始终不显示打勾。为什么


...全文
339 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
WWWWA 2003-08-22
  • 打赏
  • 举报
回复
在CHECKBOXVIEW的脚本中加入心上代码
WWWWA 2003-08-22
  • 打赏
  • 举报
回复
将TfrCheckboxView的datafield 改为 QUERY1."AA"
checkstyle:=cscross;
if [QUERY1."AA"]='0' then checkstyle:=cscheck;
fyje 2003-08-22
  • 打赏
  • 举报
回复
建立master data band,放入TfrCheckboxView, 其中将属性中datafield 改为 [Query1."aa"],checkstyle 为 cscheck ,这样就行了,无需其他程序和语句
sixgj 2003-08-21
  • 打赏
  • 举报
回复
呵呵。不明白。
fastreport快速上手手册 这个也是从别的地方下载的 目 录 入门 5 绪言 6 关于FASTREPORT的说明 6 FASTREPORT的历史 6 创建报表 7 数据 8 参数 8 窗体 9 处理 10 准备报表 10 举例:设计一个简单报表 11 FASTREPORT内核 14 DELPHI控件面板 15 “FastReport”页 15 “FRTools”页 17 TfrReport控件 17 TfrDBDataSet控件 20 TfrUserDataSet控件 21 FASTREPORT对象 21 “Text”对象 22 “Band”对象 26 “Image”对象 29 “SubReport”对象 30 “Line”对象 30 “CheckBox”对象 30 “RichText”对象 30 “OLE”对象 31 “Chart”对象 32 “Shape”对象 34 “Barcode”对象 34 “RichText 2.0”对象 35 创建报表 36 FastReport的Bands 36 简单报表(列表) 39 主-从报表 40 主-细-子细报表 40 交叉报表 40 动态报表 41 bands分隔 42 分栏报表 43 带封面的报表 43 嵌套报表(子报表) 43 主-从-从报表 44 复合报表 44 包含BLOB字段报表 44 没有band的报表 44 分组报表 44 图表报表 45 设计器 46 设计器 47 使用控制键 47 使用鼠标 48 报表选项 48 页面选项 49 设计器选项 51 对象观察器 52 “插入数据字段”窗口 53 数据字典 53 表达式编辑器 58 工具栏 60 “标准”工具栏 60 “格式”工具栏 61 “边框”工具栏 62 “对齐”工具栏 62 程序设计 64 事件 65 TfrReport对象的其它事件 65 变量 66 扩展FASTREPORT函数 68 设计你自己的预览窗口 68 扩展函数列表 69 报表示例 71 报表示例 72 在报表插入图表 72 运用OnManualBuild事件控制报表逻辑结构 74 运行时使用代码手工合成报表 76 打印可变栏数或未知栏数的报表 77 打印可变栏数和栏宽可变的报表 78 最终用户特性 80 介绍 81 对话框 81 对话框窗体控件 82 Label 83 Edit 83 Memo 84 Button 84 CheckBox 85 RadioButton 85 ListBox 86 ComboBox 86 输入信息到报表 87 数据访问控件 88 FastReport数据感知控件简介 89 TfrBDELookupComboBox 89 TfrBDETable 89 TfrBDEQuery 92 TfrBDEDataBase 93 创建报表 94 简单的“表格式”报表 94 带参数的报表 95 TFRDATASTORAGE控件 96 连接到一个数据库 97 打开一个数据表 98 生成一个查询 99 字段编辑器 99 创建查询字段 100 查询参数编辑器 101 联接数据 101 参数对话框 102 参数对话框设计器 102 内置语言 103 脚本语言和对象 104 编写代码 105 对象修改 107 内置函数 107 对象的属性和方法 110 解释器的使用 119
Version 5.1 --------------------------- - Fixed styles in Excel2007 export + Added Indy mail transport (see FR5/Source/ExportPack/frxExportMail.pas for enabling this feature) - Fixed the hyperlinks feature in PDF export + Added the transparency feature in PDF export - Fixed bug with embedding fonts on 64-bit platforms + Added Embarcadero RAD Studio XE6 support + Added OnGetCustomData/OnSaveCustomData events which allow to save custom data inside report template(look new CustomReportData demo) + Added OnLoadDetailTemplate event - used to load detail reports from other sources like data fields. + Added new multiImage mechanism in TIFF export - multiImage document is not limited with pages count + Added new property UTF8 in CSV export filter for stroing Unicode text in UTF8 encoding + Added missing RTTI information for new clases - Improved and fixed template inheritence (inherite some collections like classes and variables) - Improved checkbox control in PDF export - Fixed script inheritence - for more information see example "Report with script inheritence" - Fixed Interactive chart behaviour and added "Interactive Chart " report example - Fixed bug with shadows in pictures in PDF export - Fixed problem with multipage preview - Fixed negative number export in BIFF8 export (braket form) - Fixed pictures in PowerPoint export - Fixed bug with Excel export in Enterprise edition - Fixed frames in RTF export - Fixed gradient fill in exports version 5.0 initial release ---------------------------- Classes: - New fill types available in the Memo object: gradient and glass. - Memo object can have several highlight conditions. The highlight condition now includes the following style settings: frame, font, fill and an object visibility. You may turn on and off each setting. - Memo object can have several format settings. When a Memo object contains multiple expressions in a text, you may specify a format for each expression. - Added Filter property to data bands. You may filter out data rows without using a script. - Changes in the report file format: collections like datasets, variables, formats, highlights are written as nested properties for better readability. Old files (FR VCL 3 and 4) are fully supported. - Added MouseEnter, MouseLeave events to report objects. - Added Visibility property (set of flags - vsPreview, vsPrint, vsExport). New objects: - New 2D barcodes - PDF417, DataMatrix, QR Code. - New barcodes - Code128, EAN128 with auto encoding. Interactivity: - New interactive report types: detail report and detail page. When you click an interactive object, a new report is built and displayed in a separate tab in the preview window. - Added interactivity in the Chart object. Clicking on a chart element, you may build a detail report. Exports: - New exports: HTML5 (div), DOCX, XLSX, PPTX. - Improvements in RTF, XLS, XML, HTML, ODF exports: support of different frame lines in a single Memo object. - Improved font embedding in the PDF export: font subset is embedded instead of a whole font. This will significantly reduce a file size. GUI: - New icons in the designer and preview windows. - Improved appearance of the Data tree: new icons for different field types. - New/improved dialogs: highlight, frame, fill, hyperlink, databand editors. Client/Server: - New navigation toolbar with touch support - Works via AJAX technology - Optimized exchange protocols - Reduced response time
version 3.20-------------+ added interface IfrxFont.+ added IfrxFrame interface+ added IfrxDisplayFormat interface+ added method ResetDataSet into IfrxDataBand interface+ added support of NET streams + fixed OnSaveReport event (added SaveAs argument)+ added IfrxShapeView interface+ added C# example of OnLoadreport and OnSaveReport events.+ added OnLoadreport and onSaveReport events to IfrxDesignerEvents interface+ added IfrxPage interface and GetPage enumerator for IfrxReport+ improved RTF export+ enhanced speed and reduced output file size of PDF export+ added ParagraphGap support in PDF export+ update German resources+ update Turkish resources* AVG function now counts only non-Null values* RichView object is now WYSIWYG* lot of fixes and small updates* fixed IfrxMemmoView interface (added lot of properties - align, color, and etc)* modified OnSaveReport event of TfrxDesigner* property EnableLoadSaveEvents of IfrxDesigner interface splitted to EnableLoadEvent and EnableSaveEvent* updated C++ demo Variable (added lot of comments and emo report changed)* updated C# DataSetDemo example- fixed bug in AddVariable method of TfrxReport interface- fixed bug in RTF export with font style attributes- fixed bug with frames in PDF export- fixed paper size bug- fixed ParagraphGap in PDF export- fixed stack overflow error with report summary band- fixed error with dialog form- fixed big with TProgressBar property out of range on exports of blank page in HTML- fixed bug in PDF export with zero width/height of bitmap- fixed bug with checkbox object- fixed bug with datatree window- fixed error with chart datetime- fixed bug with inspector window in debug mode- fixed undo of password protected report- fixed some dataset problems- fixed ask save changes in designer- fixed PDF export (font color clNone looks as clBlack)

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧