ExportOptions exportOpts = new ExportOptions(); ExcelFormatOptions excelFormatOpts = new ExcelFormatOptions(); DiskFileDestinationOptions diskOpts = new DiskFileDestinationOptions(); exportOpts = _myReport.ExportOptions; excelFormatOpts.ExcelUseConstantColumnWidth = true; // Setting column width constant exportOpts.ExportFormatType = ExportFormatType.Excel; exportOpts.FormatOptions = excelFormatOpts; // Set the disk file options and export. exportOpts.ExportDestinationType = ExportDestinationType.DiskFile; diskOpts.DiskFileName = "D:\\RnD\\abc.xls"; exportOpts.DestinationOptions = diskOpts; _myReport.Export();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)