Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: exporting memo type data in excel format Post Reply Post New Topic
Author Message
anil
Newbie
Newbie


Joined: 17 Apr 2007
Location: United States
Online Status: Offline
Posts: 9
Quote anil Replybullet Topic: exporting memo type data in excel format
    Posted: 17 Apr 2007 at 7:42am

I am working on a report which gets data from oracle database. one field is of datatype memo. I wanted to export this in excel but because of memo type data is getting splitted in several  lines.  I want it to only one line.

Please advice how to keep in 1 line.
anil
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 18 Apr 2007 at 9:02am

This will depend on the version of Crystal that you're using.  I'm not sure when the ability to manipulate memo data in a formula was added - I think it was either version 9 or 10, so this will probably work for that and XI.

You'll need to create a formula that will replace the carriage return (chr(13)) and line-feed (chr(10)) characters in the memo field with a space.  You'll then use that formula on the report instead of the memo field itself. 
 
Replace({table.memofield}, chr(13) + chr(10), " ")
 
NOTE:  You may have to tweak this if your memo field only contains carriage returns instead of the cr/lf pair.
 
-Dell
IP IP Logged
anil
Newbie
Newbie


Joined: 17 Apr 2007
Location: United States
Online Status: Offline
Posts: 9
Quote anil Replybullet Posted: 23 Apr 2007 at 10:13am
Thanks Dell
anil
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.031 seconds.