In report writer, I have often used the "Print When" expression as well as the "Remove Line If Blank" option with variable success. I just want to know the logical explanation as to why sometimes it works and sometimes it doesn't.
For example, I have a report detailing loan defaulters' name, acctno, guarantors and the remarks (memo field) relating to each case. I have the detail band expand with the memo field together with the rectangle object surrounding the column. On top of the memo field position i put a few fields relating to the date of Summons filed, Judgment obtained etc. So I put in the "Print When" expression as "defendant.judgment!={}" and check the "Remove Line If Blank" option. The variable to be printed was entered as "IIF(defendant.judgment!={},COND1,COND2) where cond1 and cond2 was initialized as "cond1='Judgment Obtained On '+alltr(dtoc(defendant.judgment)" and cond2=''respectively. However, when I print the report, the line was not removed.
I then tried to use the report variables and define the variable as "cond1='Judgment Obtained On '+alltr(dtoc(defendant.judgment)" and set the initial value as ''. Still the line was not removed despite being blank.
Anybody with the same experience and hopefully a solution? I hope the experts would not be bored with my endless questions and I hope I would not be awarded with "The guy with the most questions within the hour" trophy. Thanks in advance, you guys has been very helpful all this while.
For example, I have a report detailing loan defaulters' name, acctno, guarantors and the remarks (memo field) relating to each case. I have the detail band expand with the memo field together with the rectangle object surrounding the column. On top of the memo field position i put a few fields relating to the date of Summons filed, Judgment obtained etc. So I put in the "Print When" expression as "defendant.judgment!={}" and check the "Remove Line If Blank" option. The variable to be printed was entered as "IIF(defendant.judgment!={},COND1,COND2) where cond1 and cond2 was initialized as "cond1='Judgment Obtained On '+alltr(dtoc(defendant.judgment)" and cond2=''respectively. However, when I print the report, the line was not removed.
I then tried to use the report variables and define the variable as "cond1='Judgment Obtained On '+alltr(dtoc(defendant.judgment)" and set the initial value as ''. Still the line was not removed despite being blank.
Anybody with the same experience and hopefully a solution? I hope the experts would not be bored with my endless questions and I hope I would not be awarded with "The guy with the most questions within the hour" trophy. Thanks in advance, you guys has been very helpful all this while.