I have the below code snippet where I'm trying to get Hello in one line and John in another line. I'm using CTran function where "," is being replace to "/n"(new Line). But when I'm running this, I'm getting some weired error. Can someone help with this?
So first off, you've got to have a line that displays some sort of heading such as
HEADING "&ALT_ADDR "
However this isn't really the way to handle splitting the line into multiple lines. Probably best to use GETTOK to create multiples and then
HEADING "&LINE1" "&LINE2"
If the report output is html only you can simply replace any comma in the string with a
<br>
and you get the same result.
You can reference this post for use in PDF output.This message has been edited. Last edited by: Darin Lee,
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
May 02, 2010, 05:45 PM
Waz
Darin I think you missed the code tag for
<br>
above.
You can also use the
<br>
with MARKUP=ON in the stylesheet, but not knowing the layout of the report, it may cause problems.