ShaneRankin
MIS
I have a report that I need to export to a character-separated file. I'm using a tilde for the delimiter. It has a Report Header and Footer and these need to be at the top and bottom of the file. Here's what comes out:
~position~~amsouth~20021204~000000000~~032168825~1~trailer
~position~~amsouth~20021204~000000000~~032168825~1~trailer
~position~~amsouth~20021204~000000000~~032168825~1~trailer
Here's what I want:
position~amsouth~20021204 (Header)
000000000~032168825~1
000000000~032168825~1 (Details)
000000000~032168825~1
trailer (Footer)
Two problems with what I'm getting.
1) There's delimmiters where there are no fields. Each record starts with a delimiter and there's two delimiters between "position" & "amsouth". This would seem to indicate Crystal thought there was a blank field before and after "position" and delimited accordingly but no such blank field exists.
2) The header & footer are showing up as fields in the details section.
If I export the report to Excel, everything shows up perfect.If I export out of Excel into comma delimmited file, everything shows up perfect. I tried exporting into other text formats out of Crystal and got varying degrees of flaky results.
Anybody have any ideas?
~position~~amsouth~20021204~000000000~~032168825~1~trailer
~position~~amsouth~20021204~000000000~~032168825~1~trailer
~position~~amsouth~20021204~000000000~~032168825~1~trailer
Here's what I want:
position~amsouth~20021204 (Header)
000000000~032168825~1
000000000~032168825~1 (Details)
000000000~032168825~1
trailer (Footer)
Two problems with what I'm getting.
1) There's delimmiters where there are no fields. Each record starts with a delimiter and there's two delimiters between "position" & "amsouth". This would seem to indicate Crystal thought there was a blank field before and after "position" and delimited accordingly but no such blank field exists.
2) The header & footer are showing up as fields in the details section.
If I export the report to Excel, everything shows up perfect.If I export out of Excel into comma delimmited file, everything shows up perfect. I tried exporting into other text formats out of Crystal and got varying degrees of flaky results.
Anybody have any ideas?