Crystal报表 - 在组头中打印条件值 [英] Crystal report - printing conditional value in group header

查看:48
本文介绍了Crystal报表 - 在组头中打印条件值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I have been looking for days for an answer, and i'm hoping someone will help me on this topic here. I have not been working with crystal reports for very long, so I am going to give as much detail as possible.

I have a group in my report and this group has a formula field. this formula field is expected to look for a column in the detail section and when it gets the very first value, it should print in the group header.

for example, my details section returns records as below

column1      column2    column3
--------------------------------
row1           row1
row2           row2
row3           row3       row3
row4           row4       row4

my formula should look for column3 values, and when found should display in the group header. In this case, it should print row3

Your help is much appreciated.





我是什么尝试过:



我用WhilePrintingrecords尝试了3种配方解决方案;一个在页眉中重置值,第二个在详细信息部分获取值,第三个在组头中显示它。但是这给了我空白的值



What I have tried:

I have tried 3 formula solution with WhilePrintingrecords; one at the page header to reset the value, second one at the detail section to get the value and third one at group header to display it. But this gives blank value to me

推荐答案

你可以通过在section expert suppress部分中使用公式来抑制Group header本身中空列3的记录。
you can suppress the record with empty column 3 in Group header itself by using formula in section expert suppress section.


这篇关于Crystal报表 - 在组头中打印条件值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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