如何在Crystal报表中获取最大的标题摘要 [英] How to Get the Maximum of Headers Summary in Crystal Report

查看:55
本文介绍了如何在Crystal报表中获取最大的标题摘要的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!我在VB.NET 2008上的Crystal Reports中遇到问题.我有两个GroupHeaderSection,一个是按部门分组,另一个是按部门分组.在部分"分组下,我有一系列摘要,即EmpA,EmpB,EmpC.这些摘要是每部分员工的所有workOutputHrs的总和(workOutputHrs来自SQL表,按日期保存).系&部分来自TableA,而workOutputHr来自TableB.这两个表通过EmployeeID(自动)链接.我要做的是获取这些摘要的最大值并将其放入GroupFooter中.我尝试了这段代码,但得到此字段无法汇总":

最大值(总和({TableB.EmpA},{TableA.Section}))

我希望有人能帮帮忙.谢谢!

Hi! I have a problem in Crystal Reports on VB.NET 2008. I have two GroupHeaderSection, one is grouping per Department and the other is per Section. Under the Section grouping, I have series of Summaries, i.e. EmpA, EmpB, EmpC. These summaries are the Sum of all the workOutputHrs of employees per section (workOutputHrs is from an SQL table, saved per date). The Department & Section are from TableA while the workOutputHr is from TableB. These two tables are linked by the EmployeeID (auto). What I want to do is to get the Maximum values of these summaries and put it in the GroupFooter. I tried this code but I get "This field cannot be summarized":

Maximum (Sum ({TableB.EmpA}, {TableA.Section}))

I hope someone can help. Thanks!

推荐答案

Crystal报表提供了一项功能,可以运行Total Find找出来.这可以通过RT来实现,我200%确信
Crystal Report Provides A Feature Running Total Find Out that. this can be achieved by RT i am 200% sure


自己解决了!我只是在表上进行了另一种计算,以避免遇到错误.谢谢.
Solved it myself! I just made an alternative computation on the table to avoid the error that I encountered. Thanks.


这篇关于如何在Crystal报表中获取最大的标题摘要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆