首页 文章

使用C#的Crystal报表

提问于
浏览
0

我是水晶报表的初学者,并在Crystal Reports中创建应用程序

示例Box对象如下

-----------------------
|Name | column1       |
|---------------------|
|text | column2       |
|---------------------|
|Remark| column3      |
----------------------

注意:column4包含true或false

如果cloumn4为true则表示Box应该是可见的false表示不可见

带有样本数据的表格

col1 | col2| col3 | col4
-------------------------
abc  |abc  |abc   |true
def  |def  |def   |false
xyz  |xyz  |xyz   |false
xyz  |xyz  |xyz   |true

我想打印像

box1             (invisible)
(invisible)     box4

谢谢

1 回答

  • 0

    在水晶报表中,您可以使用抑制来使对象不可见

    Format Field -> Common -> suppress Button
    

    你可以在压缩公式中使用这个例子:

    if col4 = true then false else true;
    

相关问题