Report Design
 Crystal Reports Forum : Crystal Reports .NET 2003 : Report Design
Message Icon Topic: New Line in textObject Post Reply Post New Topic
Author Message
GoLive
Newbie
Newbie


Joined: 20 Jan 2011
Location: United States
Online Status: Offline
Posts: 8
Quote GoLive Replybullet Topic: New Line in textObject
    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.

IP IP Logged
GoLive
Newbie
Newbie


Joined: 20 Jan 2011
Location: United States
Online Status: Offline
Posts: 8
Quote GoLive Replybullet 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.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.