【fastreport问题】fastreport 中怎样在groupheader中汇总数据?

wzgdyn 2008-06-27 12:48:44
fastreport2.4 中怎样在groupheader中汇总数据??不是在groupfooder 中


要将分组汇总金额显示在组头
...全文
617 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
Heyongfeng 2008-06-28
  • 打赏
  • 举报
回复
不能显示汇总,换方法吧
kaikai_kk 2008-06-27
  • 打赏
  • 举报
回复
在groupheader进行汇总,能显示汇总金额才怪
打印groupheader上的memo内容时,你的数据都还未出来呢!!!

就好像你在Report Title上放汇总一样的道理,SUM中的数据未打印前总是0;

要实现这种效果,可以在GetValue事件中,通过代码来预先统计赋值;
wzgdyn 2008-06-27
  • 打赏
  • 举报
回复
赋值没用啊 groupfooder上的memo有值正确显示,但赋给groupheader上的memo,还是显示0
xuancaoer 2008-06-27
  • 打赏
  • 举报
回复
直接在组标头区[SUM([DMHZFYCX.Query1."ssje"])]应该是不行的
试试将groupfooder带区的memo汇总值赋给groupheader上的一个memo,是否可行
wzgdyn 2008-06-27
  • 打赏
  • 举报
回复
groupheader上汇总金额的memo中 [SUM([DMHZFYCX.Query1."ssje"])] 这样写的,可结果总是0
在groupfooder 中这样就可以 郁闷

groupheader中要实现这样的求和 该怎么写 ?????要设置什么属性还是要在OnBeforePrint 中写代码 ?
wzgdyn 2008-06-27
  • 打赏
  • 举报
回复
急啊 各位高手帮帮忙啊
全网第一家 FastReport.v4.8.36 for.Delphi.BCB.Full.Source 最新版 CURRENT VERSION Build: 4.8.36 Date: 11/22/09 http://fast-report.com/en/products/report-for-delphi-fastreport-4-feature-matrix.html FastReport Studio 4.8 released! + added ability to split big bands(biggest than page height) by default + added ability to use keeping(KeepTogether/KeepChild/KeepHeader) in multi-column report + added BDE engine + added DBX engine + added confirmation reading for TfrxMailExport + added new enumerations drDontEditReportScript and drDontEditInternalDatasets to TfrxDesignerRestriction + added new TfrxDesignerRestriction: drDontEditReportScript and drDontEditInternalDatasets + added PrnOutFileName property to printer options + added RTF 4.1 support for TfrxRichText object + added TfrxDesigner.MemoParentFont property + added TfrxGroupHeader.ShowChildIfDrillDown property + added TfrxPrintOptions.PrnOutFileName property to set ability to print to file + added TfrxReportOptions.HiddenPassword property to set password silently from code + added TimeOut field to TfrxMailExport form + added checksum calculating for 2 5 interleaved barcode * changed PDF export: added full unicode support, improved performance, decreased memory requirements - changed inheritance mechanism, correct inherits of linked objects (fixups) - fixed "Page" and "Line" variables inside vertical bands - fixed ActiveForm ActiveX object - fixed bug in multi-column page when band overlap stretched PageHeader - fixed bug when cross tab cut the text in corner, when corner height greater than column height - fixed bug when designer place function in commented text block - fixed bug when designer shows commented functions in object inspector - fixed bug when engine delete first space from text in split Memo - fixed bug when Engine try to split non-stretcheable view and gone to endless loop - fixed bug when group doesn't fit on the whole page - fixed bug with displacement of subreport when use PrintOnParent property in s
version 4.9 --------------- + added export headers/footers in ODF export + added ability to print/export transparent pictures (properties TfrxPictureView.Transparent and TfrxPictureView.TransparentColor) (PDF export doesn't supported) + added new "split to sheet" modes for TfrxXMLExport + added support of /PAGE tag in TfrxRichView, engine automatically break report pages when find /PAGE tag + added ability to hide Null values in TfrxChartView (TfrxChartView.IgnoreNulls = True) + added ability to set any custom page order for printing (i.e. 3,2,1,5,4 ) + [enterprise] added variables "AUTHLOGIN" and "AUTHGROUP" inside the any report + [enterprise] now any report file can be matched with any (one and more) group, these reports are accessible only in matched groups + [enterprise] now you can set-up cache delays for each report file (reports.xml) + [enterprise] added new properties editor for reports in Configuration utility (see Reports tab) + [enterprise] added property "Xml" - "SplitType" in server configuration - allow to select split on pages type between none/pages/printonprev/rowscount + [enterprise] added property "Xml" - "SplitRowsCount" in server configuration - sets the count of rows for "rowscount" split type + [enterprise] added property "Xml" - "Extension" in server configuration - allow select between ".xml" and ".xls" extension for output file + [enterprise] added property "Html" - "URLTarget" in server configuration - allow select the target attribute for report URLs + [enterprise] added property "ReportsFile" - path to file with reports to groups associations and cache delays + [enterprise] added property "ReportsListRenewTimeout" in server configuration + [enterprise] added property "ConfigRenewTimeout" in server configuration + [enterprise] added property "MimeType" for each output format in server configuration + [enterprise] added property "BrowserPrint" in server configuration - allow printing by browser, added new template nav_print_browser

5,392

社区成员

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

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