本文介绍了如何合并水晶报表中的列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual studio 2008中工作 crystal 报告。在水晶报告中,我有两个字段 BranchName code> Types 。我想要的是如果 BranchName Types 是相同的,然后合并该特定行的所有列, strong>粗体样式。

  -------------- ------------------------ 
分行名称|类型|状态|
--------------------------------------
abc | abc | |
--------------------------------------
xyz | mnl | |
--------------------------------------



我希望它是

  -------------------------------------- 
分行名称|类型|状态|
--------------------------------------
abc |
-------------------------------------
xyz | mnl | |
--------------------------------------

我该如何做?

解决方案

合并在水晶报表中我们需要动态线,但线在水晶报表中不能抑制,我们使用文本对象以边框作为一行,那么你可以使用这个条件抑制你的行:

 如果BranchName = Types then true false b $ b  

您可以禁止 BranchName Types 与抑制我说的befor的行相同,最后u可以创建一个公式,并在其中写入:

  if BranchName = Types then BranchName else''

I am working on crystal report in visual studio 2008. In crystal report i have two field BranchName and Types. What i want is if BranchName and Types are same then merge all columns for that specific row and display only BranchName with Bold style in that row.

--------------------------------------
Branch Name  |  Types   |   Status   |
--------------------------------------
    abc      |    abc   |            |
--------------------------------------
    xyz      |    mnl   |            |
--------------------------------------

and i want it as

--------------------------------------
Branch Name  |  Types   |   Status   |
--------------------------------------
               abc                   |
------------------------------------- 
    xyz      |   mnl    |            |
--------------------------------------

How can i do this?

解决方案

for merging in crystal report we need dynamic lines,but lines cant suppress in crystal report, there for we use a Text Object with border as a line, then you can use this condition for suppressing your line:

if BranchName = Types then true else false

you can suppress BranchName and Types same as suppressing the line which i said befor and finally u can create a formula and write this in it:

if BranchName = Types then BranchName else ''

这篇关于如何合并水晶报表中的列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 13:53