Hi,
Can anyone advise me how to force paragraph breaks in a textbox in Reporting Services 2000? I've tried Shift + Enter and in layout view it forces a paragraph break, but as soon as the report is rendered, the breaks disappear.
Thanks.
Hello Matt,
Try creating an expression of your paragraph, then when you want to add a break, add a Chr(10).
In this example, the first and second sentences will be on different lines.
="This is my first sentence." + chr(10) + "This is my second sentence."
Hope this helps.
Jarret
|||Hi Jarret,
Perfect! Thank you very much.
Matt
|||Yup I found the chr(10) very helpful.
I did notice however that when viewing a report, in the report viewer before printing, that the ch(10) has no effect. All of the text runs together as one long string of text.
When I print the report all is fine with the chr(10) doing its job of providing a line break. It also looks ok in the design tool when building the report. It is just that the report viewer does not respect this .
Does anyone have a solution where by the report viewed in the report viewer does the same thing with the text as the the printed version.
Regards
Matteo
|||Looks like the suggestion from this post works: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=734028&SiteID=1
I've used "Environment.Newline" and it seems to work for the report viewer.
No comments:
Post a Comment