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
Welcome to the nuBuilder forums!
Please register and login to view forums and other content only available to registered users.
Please register and login to view forums and other content only available to registered users.
New version (2.7) displays /r/n in txtarea
-
- Site Admin
- Posts: 2782
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 2 times
Re: New version (2.7) displays /r/n in txtarea
Andre,
We are aware of this and it should be fixed in the next build (probably next week).
Steven
We are aware of this and it should be fixed in the next build (probably next week).
Steven
-
- Posts: 66
- Joined: Wed Apr 04, 2012 11:34 pm
Re: New version (2.7) displays /r/n in txtarea
Thanks Steven.
- Andre
P.S. nuBuilder is an excellent product, keep up the good work.. I really appreciate it!
- Andre
P.S. nuBuilder is an excellent product, keep up the good work.. I really appreciate it!
-
- Site Admin
- Posts: 2782
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 2 times
Re: New version (2.7) displays /r/n in txtarea
Andre,
I think I have fixed this.
Can you test it for me by replacing these files?
Steven
I think I have fixed this.
Can you test it for me by replacing these files?
Steven
-
- Posts: 66
- Joined: Wed Apr 04, 2012 11:34 pm
Re: New version (2.7) displays /r/n in txtarea
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
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
-
- Site Admin
- Posts: 2782
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 2 times
Re: New version (2.7) displays /r/n in txtarea
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
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
-
- Posts: 66
- Joined: Wed Apr 04, 2012 11:34 pm
Re: New version (2.7) displays /r/n in txtarea
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)??
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)??