Page 1 of 1
New version (2.7) displays /r/n in txtarea
Posted: Fri Jun 22, 2012 3:47 pm
by anorman
Hello,
I am creating a report, which has a few textarea's in it.
When it prints the report (either html or pdf) it displays the \r\n instead of interpreting it and actually doing a carriage return.
Oddly, a second problem I found accidentally with this is the html and pdf report is slightly different in that the html report seems to acknowledge the textarea dimensions and will word wrap within it's designated print area, however, the pdf just prints the entire field on a single line, ignoring the textarea dimensions.
Thanks,
- Andre
Re: New version (2.7) displays /r/n in txtarea
Posted: Fri Jun 22, 2012 11:39 pm
by admin
Andre,
We are aware of this and it should be fixed in the next build (probably next week).
Steven
Re: New version (2.7) displays /r/n in txtarea
Posted: Sun Jun 24, 2012 9:54 am
by anorman
Thanks Steven.
- Andre
P.S. nuBuilder is an excellent product, keep up the good work.. I really appreciate it!
Re: New version (2.7) displays /r/n in txtarea
Posted: Mon Jun 25, 2012 12:42 am
by admin
Tell everyone you know.
Re: New version (2.7) displays /r/n in txtarea
Posted: Mon Jun 25, 2012 8:40 am
by admin
Andre,
I think I have fixed this.
Can you test it for me by replacing these files?
productionnu2.zip
Steven
Re: New version (2.7) displays /r/n in txtarea
Posted: Tue Jun 26, 2012 12:35 am
by anorman
Using those two files I get:
The textarea that should be printed is:
1 way Road
Southington, CT 06489
ATTN: Mike Drouin
-------------------------------------
pdf output : 1 way Road\r\nSouthington, CT 06489\r\n\r\nATTN: Mike Drouin
html output: 1 way Road\r\nSouthington, CT 06489\r\n\r\nATTN: Mike Drouin
However, the HTML output actually "honors" the area boundry of the textbox on the report, so it is wrapped within the size boundry.
The pdf does not honor anything, and that entire line is printed without wrapping, well over the "area" boundry of the box that it should be contained in.
I'm also not sure if this is associated in any way with this issue, but the pdf version will not print out my .png logo image (It is just white where it should be)
FYI: You made a patch for me for the last version for a similar (\r\n) problem..
http://forums.nubuilder.cloud/viewtopic.php?f=3&t=7847
I tried that patch (the php files anyway, nothing else as I wasn't sure if the structure of the database was the same), and the problem seems to persist...
- Andre
Re: New version (2.7) displays /r/n in txtarea
Posted: Wed Jun 27, 2012 3:27 am
by admin
Andre,
I think I know what's going on.
You are using a Textarea on a Object where "Can Grow" is set to False.
A limitation in nuBuilder is that in Objects like this, carriage returns can't be represented.
Here are 3 work arounds.
1-Chop it up programmatically and display it on 4 or 5 separate lines.
2-Start recording addresses on separate text fields eg Address1, Address2, City, and display them on 4 or 5 separate lines.
3-Make the field shorter and set "Can Grow" to True. (This will require you to make another group in the report like Page Header as a Page Header or Footer cannot contain a "Can grow" Object.
Its not a bug so much as the way the report builder builds itsself.
Steven
Re: New version (2.7) displays /r/n in txtarea
Posted: Thu Jul 05, 2012 11:34 pm
by anorman
Ah.. Thank you!
That did it correctly for the html version.. The PDF version now has extra line feeds in it.. Is that because of the above patch not realizing what I did? (I.E. should I put the original files back)??
Re: New version (2.7) displays /r/n in txtarea
Posted: Sat Jul 07, 2012 10:14 pm
by admin
Andre,
Try installing 2.7.1
Steven