berthe
26th March 2003, 16:32
I want to print a text on a report. To make sure the text is printed on 1 page (not 1 part at the bottom of a page and the next part at the top of the following page), I use the function 'need' in the report script. The considered text is 2 lines.
Use code:
before.orco.54:
before.layout:
l.nr.lines = 0
if (text.present.in.language(tcmcs901.txtg, tcmcs046.lang,
l.nr.lines) = 0) then
lattr.print = false
else
need(l.nr.lines)
endif
The first time I come in 'before.orco.54' everything is fine,
the second time I come in 'before.orco.54', I get the following errors:
4 : process 21 - Fatal error : Function 'need'; Recursion not possible refcount=2.
5 : process 21 - Fatal error : Can not continue in rtdsls4401010000 in DLL: ottstprepdll (need)[bms.receive$]
6 : process 21 - Fatal error : Recursion not yet implemented
7 : process 21 - Fatal error : Can not continue in rtdsls4401010000 in DLL: ottstprepdll (need)[]
Both the first as the second time I come in 'before.orco.54', I'm in the middle of the page...
Use code:
before.orco.54:
before.layout:
l.nr.lines = 0
if (text.present.in.language(tcmcs901.txtg, tcmcs046.lang,
l.nr.lines) = 0) then
lattr.print = false
else
need(l.nr.lines)
endif
The first time I come in 'before.orco.54' everything is fine,
the second time I come in 'before.orco.54', I get the following errors:
4 : process 21 - Fatal error : Function 'need'; Recursion not possible refcount=2.
5 : process 21 - Fatal error : Can not continue in rtdsls4401010000 in DLL: ottstprepdll (need)[bms.receive$]
6 : process 21 - Fatal error : Recursion not yet implemented
7 : process 21 - Fatal error : Can not continue in rtdsls4401010000 in DLL: ottstprepdll (need)[]
Both the first as the second time I come in 'before.orco.54', I'm in the middle of the page...