spartacus
14th January 2002, 16:54
On Baan b2 I print a report with a text field. The text field has several lines. During the print of the the field, a page break occurs. On the new page one line is printed correct, after that, the rest of the lines from the text field, are suddenly printed bold, and totaly on the left side of the report?
Due to the fact that the format changes within the text field, I have no glue, where ist comes from.
Any ideas ?
Thanks in advance
spartacus
evesely
14th January 2002, 17:46
Did you try running the report in debug mode and viewing exactly what it is trying to spool? It may show a CF$(1) [i.e., bold] being thrown in there for some goofy reason. That would be the first thing I would check.
spartacus
14th January 2002, 19:12
I tried the debugger. In case that field there ist no spool visible. Seems to be done with "r_text_xy". Found nothing which can kill the format. Btw: due to the length of the string not all is visible in the debugger.
Thanx
spartacus
evesely
14th January 2002, 23:06
When I have had to look at text printing, it seems to have been printed using the r_print_text function. This takes a ton of inputs.
If you actually use r_print_text, then since the problem seems to occur only after the first line, you might try this.
field.textfield:
before.print:
r_text_cf(1) = 0
This is the variable that gets passed to the r_print_text function to determine bolding, blinking, etc. Of course, I don't guarantee anything :D, but it might be worth a quick try. I ran a quick trial setting it to 4(REVERSE), and it reversed the lines after the first one.
Good luck!
spartacus
15th January 2002, 10:34
Thanx,
you`re right. I use r_print_text(). As far as I can see in the debugger "r_text_cf(1)" is set to zero, before the text is printed.
Anyway, I followed your suggestion and entered "r_text_cf(1) = 0". I did it in "before.print" AND in "before.layout" it doesen`t help.
Perhaps you have to consider: The printout of the first lines of the text is OK. Than a pagebreak happens. After the pagebreak ONE line of the text is still OK, but all following lines are bold and shifted to the left border.
greetings
spartacus
evesely
15th January 2002, 16:28
I'm unsure of where to look now. Is this only for one particular text or is it universal when the text crosses a page boundary? The only thing I can think of is very unlikely: having a bolding control code in the text directly or via substitution. Sorry.
ulrich.fuchs
15th January 2002, 16:46
Hi!
The last time I worked with IVb is already some years ago.
However I do remember that there was a bug with page breaks in texts. Have you checked that with the Baan support?
Yours,
Uli
spartacus
15th January 2002, 19:31
Hi Uli, hi Ed
Ed: I checked the text an found no control-character. Also: Without a page break it works, Furhter: If other texts are interrupted by a page break the same thing occurs.
I think I have had the same problem with an other report. So I think I agree with Uli, that it is a bug.
I searched the Baan Knowledgebase (but can not spend much time). Find nothing yet, maybe there is to much info, bacause I think it doesn´t concern a certain session.
So my solution is for now: I calculate if the text fit on the page. If not I call a "page()". That works fine and was fast done.
Thanx for your support
spartacus
:o