Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: how to change a new line? Post Reply Post New Topic
Author Message
crystaliao
Newbie
Newbie


Joined: 27 Sep 2010
Location: Taiwan
Online Status: Offline
Posts: 18
Quote crystaliao Replybullet Topic: how to change a new line?
     Posted: 27 Sep 2010 at 10:21pm
in my raw data, they're 5 line's

ex:
Q1.how old are you?
A1.under 20
A2.21-30
A3.31-40
A4.above 40

but the output in text object are all in the same line like
Q1.how old are you?A1.under 20A2.21-30A3.31-40A4.above 40

it's abuse to use '\n', what are other ways to separate them?

thanks~[IMG]smileys/smiley1.gif" align="middle" />

Edited by crystaliao - 28 Sep 2010 at 4:59pm
IP IP Logged
Emir_W
Senior Member
Senior Member
Avatar

Joined: 25 Apr 2010
Online Status: Offline
Posts: 228
Quote Emir_W Replybullet Posted: 28 Sep 2010 at 12:06am
try ==>  chr(13)
 
 
hope it help
 
Emir W
IP IP Logged
crystaliao
Newbie
Newbie


Joined: 27 Sep 2010
Location: Taiwan
Online Status: Offline
Posts: 18
Quote crystaliao Replybullet Posted: 28 Sep 2010 at 1:01am
so glade to get your answer, Emir
but where should I set chr(13)?

Edited by crystaliao - 28 Sep 2010 at 1:02am
IP IP Logged
Emir_W
Senior Member
Senior Member
Avatar

Joined: 25 Apr 2010
Online Status: Offline
Posts: 228
Quote Emir_W Replybullet Posted: 28 Sep 2010 at 1:16am
1st of all, how you put it in your report?
 
you can put it on the last part of each line.
e.g.:
{tbl.field}+chr(13)
 
 
 
hope it help.
 
Emir W
IP IP Logged
crystaliao
Newbie
Newbie


Joined: 27 Sep 2010
Location: Taiwan
Online Status: Offline
Posts: 18
Quote crystaliao Replybullet Posted: 28 Sep 2010 at 4:57pm
you mean put it in database?
like this...
Q1.how old are you? chr(13)A1.under 20 chr(13)A2.21-30 chr(13)A3.31-40 chr(13)A4.above 40

I've try chr(13),chr(10),\n,\r
but non of it can work.

did I use wrong way to put it on?

my environment is.....
asp.net 3.5 for C#
visual studio 2008
SQL server 2008





Edited by crystaliao - 28 Sep 2010 at 5:08pm
IP IP Logged
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