vb.net 如何根据公式字段中的条件抑制水晶报表中的部分

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25237376/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 18:01:33  来源:igfitidea点击:

How to suppress section in crystal report based on a condition in formula field

asp.netvb.netcrystal-reports-2008

提问by Danbo

I have a formula for the conversion of the catcher type in the crystal report:

我在水晶报表中有一个转换捕手类型的公式:

select {command.catcher_type}
case 1:'Bag Net'
case 2:'Beach/Drag Seine'
case 3:'Danish Seine'
case 4:'Gill Net'
case 5:'Handline'
case 6:'Longline'
case 7:'Paaling/Drive-in Net'
case 8:'Push Net'
case 9:'Ring Net'
case 10:'Round Haul Seine'
case 11:'Sardine/Mackerel/Scad Purse Siene'
case 12:'Trawl'
case 13:'Tuna Purse Seine'
case 14:{command.other_gear}
default: 'N/A'

this works in my report..

这适用于我的报告..

I have to suppress the section3of my report depending on the value from the result of the formula above..

我必须section3根据上述公式结果的值来抑制我的报告。

here is my formula for the suppression:

这是我的压制公式:

if('@gear_translate')="13" then
    True
else
    false

it doesn't work .. it did not suppressed the section3.

它不起作用..它没有抑制第3节。

回答by Siva

Result of the formula is a text filed and hence your target formula should be:

公式的结果是一个文本文件,因此您的目标公式应该是:

if {@gear_translate}="Tuna Purse Seine" then
    True
else
    false