我们如何使用C#.net在Crystal报表中隐藏空白字段 [英] how we suppress blank fields in Crystal report using C#.net

查看:67
本文介绍了我们如何使用C#.net在Crystal报表中隐藏空白字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在C#.net中开发Windows应用程序项目.在那儿,我使用Crystal报表查看详细信息..我在Crystal报表中有5个字段,分别是field1,field2,field3,field4和field5.每个记录都包含这5个字段.我想将所有字段合并为单个字段,如下所示:

hi guys,

am developing Windows application project in C#.net..In that am using Crystal report for viewing details..I have 5 fields in crystal report namely field1,field2,field3,field4 and field5..each record contain this 5 fields..here i want to concatenate all fields into single one as follows:

Record1    FIELD1 : field1
           FIELD2 : field2
           FIELD3 : field3
           FIELD4 : field4
           FIELD5 : field5

Record2    FIELD1 : field1
           FIELD2 : field2
           FIELD3 : field3
           FIELD4 : field4
           FIELD5 : field5



等等....

除此以外,我想抑制空白/空字段并避免使用空格.例如,如果record1中field3为空白/空,那么我需要以下输出



and so on....

in addition to that i want to suppress the blank/empty fields and also avoid blank space..for example if field3 is blank/empty in record1,then i need the following output

Record1   FIELD1 : field1
          FIELD2 : field2
          FIELD4 : field4
          FIELD5 : field5

Record2   FIELD1 : field1
          FIELD2 : field2
          FIELD3 : field3
          FIELD4 : field4
          FIELD5 : field5



等等...

我如何获得高于输出而不是跟随输出...

我尝试了一些解决方案,得到以下输出:



and so on...

How i get Above output instead of following output...

i tried some solutions i get following output:

Record1    FIELD1 : field1
           FIELD2 : field2

           FIELD4 : field4
           FIELD5 : field5

 Record2   FIELD1 : field1
           FIELD2 : field2
           FIELD3 : field3
           FIELD4 : field4
           FIELD5 : field5




请帮我解决这些问题...




Plz help me out of this guys...

推荐答案

创建formula field
水晶报告-地址公式出现问题 [ ^ ]
如何编写公式来显示地址"字段 [ ^ ]
还要检查这些
禁止Crystal Reports中的空行 [水晶报告:删除重复的值 [
Create formula field
Crystal Reports - Trouble with Address Formula[^]
How to write a formula to display Address field[^]
Also check these
Suppressing blank lines in Crystal Reports[^]

If you''re talking about duplicate rows, Use Suppress if duplicated option
Crystal Reports: Remove Duplicate Values[^]


这篇关于我们如何使用C#.net在Crystal报表中隐藏空白字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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