Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: CSV Export output looks strange Post Reply Post New Topic
Author Message
livez
Newbie
Newbie


Joined: 14 Feb 2008
Location: Sweden
Online Status: Offline
Posts: 17
Quote livez Replybullet Topic: CSV Export output looks strange
     Posted: 18 May 2009 at 11:50pm
Hello!
 
Im trying to export my reports to .csv, but cant seem to format export output the way I want.
 
 
My problems are:
 
1. Reportheader and reportfooter appears on every row, eventhough I specifically set them not to.
 
2. åäö-characters gets all messed up and instead looks like this: ö
 
This is my code for setting up the export:
 

exportOptions.ExportDestinationType = ExportDestinationType.NoDestination;

exportOptions.ExportDestinationOptions = new DiskFileDestinationOptions();

exportOptions.ExportFormatType = ExportFormatType.CharacterSeparatedValues;

CharacterSeparatedValuesFormatOptions characterSeparatedValuesOptions = ExportOptions.CreateCharacterSeparatedValuesFormatOptions();

characterSeparatedValuesOptions.ExportMode = CsvExportMode.Standard;

characterSeparatedValuesOptions.GroupSectionsOption = CsvExportSectionsOption.ExportIsolated;

characterSeparatedValuesOptions.ReportSectionsOption = CsvExportSectionsOption.ExportIsolated;

characterSeparatedValuesOptions.Delimiter = ",";

exportOptions.ExportFormatOptions = characterSeparatedValuesOptions;

Report.ExportToDisk(ExportFormatType.CharacterSeparatedValues, "testing.csv");

Does anyone have an idea how I solve these two issues?
 
edit: I´m using CR2008.


Edited by livez - 19 May 2009 at 12:19am
IP IP Logged
livez
Newbie
Newbie


Joined: 14 Feb 2008
Location: Sweden
Online Status: Offline
Posts: 17
Quote livez Replybullet Posted: 27 May 2009 at 2:04am
Solved it by not using CR 2008 at all when exporting to csv, doing it myself instead.
IP IP Logged
dash_anup2000
Newbie
Newbie
Avatar

Joined: 26 Feb 2008
Location: India
Online Status: Offline
Posts: 8
Quote dash_anup2000 Replybullet Posted: 14 Dec 2009 at 3:50am
I am using Crystl-XI and teradata as databse. i had one subreport in the main report. While exporting to PDF and otherformat all data present in Subreport and main report are getting exported. But while exporting the report in CSV format, still its not exporting.
Can anybody help me for that?
Anup
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