0

My question it's quite simple.

Suppose I have a "StoredProcedure" that gives me a result of a table with 2 columns, say: "Name" and "Surname".

I want to show the table only if the result set is not empty.

If I drag&drop the "Name" and "Surname" fields to the "Details" section, it automatically generates in the Header section the name of those columns, but if the result set is empty, I still see the column names. What I want is to make the column names dissapear if there isn't any data to show.

Any idea of how to do this?, it sounds very reasonable so I guess the solution is simple, but I don't know it

4

1 回答 1

0

我现在意识到这个问题在我提出的其他问题中得到了回答。 根据 Crystal Reports 中的空值或空值进行条件打印

我猜想用“Count()”函数在列标签上设置一个条件值(我猜应该是一个),就能完成工作。

If Count(someFieldOfTheResult) == 0 THEN 
    notShowLabel 
ELSE 
    showLabel
于 2012-05-13T13:37:18.153 回答