benter
9th December 2014, 04:28
we have a PO report, it need to print order line text/ item desc, but the width of the report is not enough, so , if the value can not display in one line, we need to split the text to several lines, and display in the report.
how to do?
Mohammad1911
9th December 2014, 06:10
Hello,
U can print long description to several lines Like this:
Example :
string dsca(500) your String Field
Use in report layout like this
dsca(1;20) Print first 20 characters
dsca(21;40) Print next 20 characters
dsca(41;60) Print next 20 characters
:
:
and so on
benter
10th December 2014, 04:11
but for us ,it exists a question is , the description include Chinese & English, but Chinese is 4 characters, if split it by your way, sometimes we will get the mess code.
thank you!
BaanInOhio
11th December 2014, 20:56
Are you trying to split a multi-byte field? If so, you may have to convert the field to string first. You can use something like this:
tfcmg.dll0010.convert.string.from.multi.to.single.byte(
mutlibyte.string, |* Input string, up to 300 characters
80, |* Output length
"", |* Character set (blank is default)
false) |* No uppercase conversion