Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8800

Display error when Exporting to Microsoft Excel (97-2003) from Crystal Reports 2008

$
0
0

I have an RPT file that is using the three formula "trick" to concatenate a list of items into a comma separated list.

 

Example Dataset:

 

NumberLetter
1A
1B
1C
2A
3A
3B

 

Should be turned into:

 

NumberLetter
1A, B, C
2A
3A, B

 

However, under certain circumstances the out out looks like this:

 

NumberLetter
1A, B
2A, B
3A, B

 

I have narrowed this down to occurring when all of the following are true:

  • Exporting Report to Microsoft Excel (97-2003)
  • The length of two consecutive Concatenations are each over 255 characters

 

The formulas I am using to do the concatenation are as follows:

@Reset (placed in the Group Header #1, suppressed):

WhilePrintingRecords;

StringVar AllLetters := ' ';

 

@Concat (placed in the Details, suppressed):

WhilePrintingRecords;

StringVar AllLetters;

if AllLetters = ' ' then

    AllLetters := {Command.Letter}

else

    AllLetters := AllLetters + ', ' + {Command.Letter}

 

@Display (placed in the Group Footer #1, suppressed):

WhilePrintingRecords;

StringVar AllLetters;

 

Does anyone have an idea what's going on? Is this a bug with the Crystal Reports export function? Any help is appreciated.


Viewing all articles
Browse latest Browse all 8800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>