I'm trying to export a report to Excel, using this code:
In the excel-sheet I end up with, all text-fields are truncated to fit the size of the field on the report-design. However, I want to export many long textfields, so I dont want them truncated...
Does anybody know which settings I overlooked?
Code:
ExportOptions exportOpts = oRpt.ExportOptions;
exportOpts.ExportFormatType = ExportFormatType.Excel ;
exportOpts.ExportDestinationType = ExportDestinationType.DiskFile;
exportOpts.DestinationOptions = new DiskFileDestinationOptions();
// Set the disk file options.
DiskFileDestinationOptions diskOpts = new DiskFileDestinationOptions();
((DiskFileDestinationOptions) oRpt.ExportOptions.DestinationOptions ).DiskFileName = strFileName ;
oRpt.Export();
Does anybody know which settings I overlooked?