Quantcast
Channel: Crystal Reports
Viewing all articles
Browse latest Browse all 1507

Crystal Report CSV Spanish Characters are not displaying corrently.

$
0
0

I have used Crystal Report Version 13.0..6.220 in asp.net website. I have used following settings when exporting as CSV.

ExportOptions exportOpts = new ExportOptions();
                    exportOpts.ExportFormatType = ExportFormatType.CharacterSeparatedValues;
                    CharacterSeparatedValuesFormatOptions options = ExportOptions.CreateCharacterSeparatedValuesFormatOptions();
                    options.GroupSectionsOption = CsvExportSectionsOption.ExportIsolated;
                    options.ReportSectionsOption = CsvExportSectionsOption.ExportIsolated;
                    options.ExportMode = CsvExportMode.Standard;
                    exportOpts.ExportFormatOptions = options;
                    Response.Charset = "";
                    Response.ContentType = "application/csv";
                    Response.ContentEncoding = new ASCIIEncoding();
                    rptDoc.ExportToHttpResponse(exportOpts, Response, true, "LoanReport");

When I change following line  

options.ExportMode = CsvExportMode.Standard;

to 

options.ExportMode = CsvExportMode.Legacy;

then CSV displays data corrently but Headers of Report are repeated in each row.  Changing back to standard lost data encoding. Any one has solution please help me.

Thanks & Regards,


Viewing all articles
Browse latest Browse all 1507

Trending Articles



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