evertsen
12th November 2002, 23:19
We use automatically generated text on custom items that will often have blank lines in it. Different lines are empty depending on the composition of the item.

example:

<blank>
text line 2
<blank>
<blank>
text line 5

How do I get rid of (i.e. not print) the blank text lines in the report?

Ev

mgakhar
12th November 2002, 23:56
Which Baan version are u using ??

For Baan V there is a standard dll tccomdll4030 which has a method tccom.dll4030.format.address() which should do the job for u.

Input:

i.cadr - address code

i.lines - number of lines available on your report. In case a formatted address contains more lines than available on your report, the formatted address will not include those lines with the lowest priority (1 = highest priority, 20 = lowest priority)

ref string o.fadr(,)

Hope this helps,

MG.

tjbyfield
13th November 2002, 00:53
Mgakhar

We have BaanIVc4.
We check the length of the text line in report script and don't print if zero
eg:
field.txtn.ptr:
before.print:
if len(lattr.textline) = 0 then
lattr.print = false
endif


Hope this helps

Terry

evertsen
13th November 2002, 08:12
Thank Terry,
that's what I was looking for.

Ev