Print Page | Close Window

New Line in textObject

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=12402
Printed Date: 03 May 2024 at 11:23am


Topic: New Line in textObject
Posted By: GoLive
Subject: New Line in textObject
Date Posted: 22 Feb 2011 at 11:50am
Hi,

How to embed new line in textObject. I have a very long string with 3 paragraph and i want to embed whole string into one textObject. I tried using Environment.NewLine, \r\n, <BR> but nothing works.

Please provide with valuable suggestions.

Thank you.




Replies:
Posted By: GoLive
Date Posted: 23 Feb 2011 at 5:35am
I found this fantastic solution for this problem.

http://www.vbforums.com/showthread.php?t=435070

Lets say you call the parameter "test" you would use code like this

MyRpt.SetParameterValue("test", "HELLO" & Environment.NewLine & "WORLD")

where MyRpt is the variable of your report object..

Works like a charm for me so i thought of posting if anyone needs it.

Thanks.



Print Page | Close Window