adi28_rai
19th October 2010, 16:13
Hi
Can any one tell me how to empty reprt_send data buffer
or how can i print a long value in report as blank
mark_h
19th October 2010, 19:57
Yep - change the variable from long to text. Then use something like
somevar>0 ? str$(somevar) : " ". THis is like a if-then statement. I do this to actually change some labels. At least in 4c4 it works - ex: prnt.by.mnth = tcyesno.yes ? "Months" : "Weeks"
sameer.don
20th October 2010, 08:35
Hi,
there are 2 cases when I need to print long value as blank,
1. when value is 0 it should be printed as blank: in this case I choose to change "Print Format" from "zzzzz9" tp "zzzzzz". It prints blank for when value is 0. (Print format can be set in field properties on report. for this u need to uncheck the check box of "Link with domain")
2. Based in some condition values should not be printed to report:
In this case you can specify the condition in "Print Expression" on field property on report. (if print expression = 0 field will not be printed on report. And if print expression = 1 field will be printed.)
Check attached screen-shot, illustrating both the cases above.