xsharp.eu • [rp 2.35] Expression Editor & line breaks // solved
Page 1 of 1

[rp 2.35] Expression Editor & line breaks // solved

Posted: Mon Sep 07, 2020 2:15 pm
by FFF
Robert,
there's a bug in the parsing of the expression editor.
If e.g. i put this in:
"23.09.2020 Flügelschlagquartett (2 Klaviere + 2 Schlagzeuger)" + CRLF + "11.11.2020 Trio con Brio (Klaviertrio aus Copenhagen)"
written on one line, the checker says: "expression valid"
If i enter a linebreak (using CTRL-Enter) after the "CRLF +" part, i get "error in the expression".

EDIT: got it, it follows the same rule as in source, after the "+" has to follow a semi-colon...

[rp 2.35] Expression Editor & line breaks // solved

Posted: Mon Sep 07, 2020 2:51 pm
by Chris
Hi Karl,

Good idea, we should be able to safely strip out CRLFs from the expressions, will log this as a feature request. I wish you had suggested this 15 years ago, when I was using RP2 as a developer and was very annoyed by how the expression edit boxes worked in RP :)

[rp 2.35] Expression Editor & line breaks // solved

Posted: Mon Sep 07, 2020 3:29 pm
by FFF
Well, who would have listened...
But you asked for it, so here goes:
a) if i want to make a new label report, it can't find "Label.sys" - my "Search everything" find's no such file on this computer, but the ol' 2.17k version works
b) Have a look, how i have to overlap the fields in the design, to get somewhat decent output. If i reduce the fieldheight only minimaly, the second line gets stripped from output. Feels like some mismatch between font size in designer and output...
Fieldheight.PNG
Fieldheight.PNG (15.63 KiB) Viewed 283 times
Fieldheight_2.PNG
Fieldheight_2.PNG (12.47 KiB) Viewed 283 times

c) if you remove "header and footer bands" from the section tab, "page properties" dissappears entirely

d) label report, two columns, 1cm midway distanced, have a look: the right label-border in the designer is painted at the position, where the left border of the second column-label starts, i.e. wronlgy includes the horzizontal gap value
Labelwidth.PNG
Labelwidth.PNG (18.61 KiB) Viewed 283 times
e) i paint a field in design, -> align, center horizontally in margins - won't result in centering to the label width -> ok, if one reads margins as per paper - but there's no center in label.

[rp 2.35] Expression Editor & line breaks // solved

Posted: Tue Sep 08, 2020 1:31 pm
by Chris
Karl, can you please post a sample?

[rp 2.35] Expression Editor & line breaks // solved

Posted: Tue Sep 08, 2020 2:06 pm
by FFF
Chris wrote:Karl, can you please post a sample?
Edited my post for better organization ;) For b) see Abo-Karten_Rückseite report. This report there's only fixed text used. Pls rename file to .rpt
For d) use Abo-Karten_V4 and do likewise.
For the other points i see no "sample", here one has to look into the designer :whistle:

[rp 2.35] Expression Editor & line breaks // solved

Posted: Tue Sep 08, 2020 4:03 pm
by Chris
Thanks, confirmed and logged! I am afraid those are not trivial issues like they may seem (designer to screen/printer translation is very complicated), but we'll look into them.

[rp 2.35] Expression Editor & line breaks // solved

Posted: Tue Sep 08, 2020 4:10 pm
by FFF
Thx - glad, it's not my usual stupidity ;)