Hi all,
I've got a specific question about the CSV Export functionality (on a Web App).
I've put a button in my aspx page to export the content of the Crystal Report Viewer
ReportDocument _rptdListeBdc = new ReportDocument(); CharacterSeparatedValuesFormatOptions csvExpOpts = new CharacterSeparatedValuesFormatOptions(); ExportOptions exportOpts = new ExportOptions(); DiskFileDestinationOptions diskOpts = new DiskFileDestinationOptions(); exportOpts = _rptdListeBdc.ExportOptions; csvExpOpts.GroupSectionsOption = CsvExportSectionsOption.DoNotExport; csvExpOpts.ReportSectionsOption = CsvExportSectionsOption.DoNotExport; csvExpOpts.ExportMode = CsvExportMode.Standard; csvExpOpts.Delimiter = "\""; csvExpOpts.SeparatorText = ";"; csvExpOpts.PreserveNumberFormatting = true; exportOpts.ExportFormatType = ExportFormatType.CharacterSeparatedValues; exportOpts.ExportDestinationType = ExportDestinationType.DiskFile; exportOpts.ExportFormatOptions = csvExpOpts; diskOpts.DiskFileName = "C:\\test.csv"; exportOpts.DestinationOptions = diskOpts; _rptdListeBdc.Export();
Everything works fine, my question is : Is there any way to do the same things with the Export button of ther crystal report viewer ?
I've only found property AllowedExportFormats but nothing about the formats themselves.
Thanks in adavance.
Fred.