BookmarkSubscribeRSS Feed
craigmcn
Calcite | Level 5
I didn't find anything in any other threads, but I might have missed it.

I'm trying to use multiple lines of text in my header in WRS 4.3, but the carriage return is stripped when I save my changes.

I tried \n and Ascii CR (0013), as well as the Enter key, but nothing stayed.

Any ideas?
8 REPLIES 8
Nithin
Calcite | Level 5
Hey,

I had issues with Header/Footers too. I would suggest you to use Text box objects in report and position them to look as Header/Footer.

-Nithin
craigmcn
Calcite | Level 5
Thanks, Nithin. I may end up doing that. I just hate that it's such a "hacky" solution and can add a maintenance burden to upgrades.
Jenn2
SAS Employee
From Mudit:

Just pressing Enter or Return key between the lines should help!! I tried it in WRS 4.3 here, and it worked.
Jenn2
SAS Employee
From Angela,
The user must be experiencing a bug somewhere. I was able to do the same thing and the system didn’t strip my carriage returns.

Note that for the user – his are getting stripped for some reason.
Jenn2
SAS Employee
Yes, I found one before I replied. If you copy and paste TEXT containing carriage returns from some other source like notepad then WRS strips off those characters. I believe user is doing something similar.

DEFECTS FILED

In this scenario, user should replace the “Carriage” characters with the “Return” key in WRS header string in order to have multiple lines.
Jenn2
SAS Employee
From Cynthia,
To me, the question is – when the SASReport XML version of the report is saved and we are no longer in the Report Viewer, what happens to the manually entered CR??? Does the manually entered carriage return “come back” when you reopen the file or is it gone again???? If the manually entered carriage return is still there when you reopen the report (after saving it), then I guess you’d need to reverse engineer the SAS Report XML of the XML –with the CR – to see what magic XML is in SASReport XML.

If the carriage return is gone when you reopen the SASReport XML, then that implies to me that the saving process (when translating back to SASReport XML) does something to the manually entered CR.

cynthia
craigmcn
Calcite | Level 5
Thanks Jenn2 for all the updates.

I'm pretty sure I tested it in a number of ways and always had my CRs stripped, but now it only seems to be when pasting from Notepad, as noted above.

When I try it now, just pressing when I need a CR, it works like a charm. I even tried it in Internet Explorer and Firefox, just to make sure it wasn't a browser issue.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 8 replies
  • 1934 views
  • 0 likes
  • 4 in conversation