COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: ry1633 on 26 Jun 2015 09:36:25 AM

Title: putting carriage return inside a text block
Post by: ry1633 on 26 Jun 2015 09:36:25 AM
Hi all,  this might seem like a very simple question but for the life of me I can't seem to figure it out.   How do you put a standard carriage return inside a text block in Report Studio.   I'm working with a report, that I'd like to put a few lines of instructions into a text block.  And the report view treats it as one big long line, and only breaks the line when it runs out of space on the page.  I tried putting in <p> html tags but that didn't work obviously.  :)

thanks for the help, r
Title: Re: putting carriage return inside a text block
Post by: ry1633 on 26 Jun 2015 10:08:07 AM
nevermind :)  -  I kinda hacked around a little bit and I got a decent workaround using Rich Text blocks and HTML blocks.
Title: Re: putting carriage return inside a text block
Post by: gordread on 26 Jun 2015 10:20:01 AM
The other way to do it is to change the 'Source Type' of the text object to 'Report Expression'.  Then whatever you put in between two single quotes
'like

this'

will show up as entered.