suppress line conditional in crystal report

☆樱花仙子☆ 提交于 2019-12-09 10:55:02

问题


I've a vertical line that i want to suppress with a condition. Unfortunately I don't see the condition option by a line. When I use an empty textbox, all the other text is moved down. Is there conditional another suppress option for a line?


回答1:


You can't conditionally suppress a line in CR. I know of two options to get around that:

  1. Put the line in its own section and then conditionally suppress the section.
  2. Put a textbox over the line and then conditionally format the background of the textbox by right-clicking on the textbox -> Format Field -> Border tab -> check Background check box -> click "x+2" box to enter conditional formula, The formula would be something like if condition then crWhite else NoColor, where crWhite will hide the line, NoColor will show it.



回答2:


Simple way,

  1. Insert Text object increase the length of the object as required.

  2. Go to Format Object -> select border property and choose Top or bottom lines.

  3. Put some text (like under score or space) for object text and minimize the width of the object so that you can't see the provided data to the object but still border appears as a line.

As it worked for me.



来源:https://stackoverflow.com/questions/20485385/suppress-line-conditional-in-crystal-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!