Ernst wrote:Am scheduling a report via a plugin, but the customer wants the file in CSV format, instead of PDF format.
Has anybody managed to get this to work. Thx.
Im using 7.0.175 and mostly vb .net.
Hi Ernst,
If you take a look at this
topic, you should be able to just change the the line which reads:
- Code: Select all
printReportObject.CrystalReportObject.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, FileName);
To:
- Code: Select all
printReportObject.CrystalReportObject.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.CharacterSeparatedValues, FileName);
If the report is a stored procedure based report, then I think it would be vastly more efficient to simply call the stored procedure and write away the results to a csv.
Mike