This is the code I have:
Code: Select all
report.renderAsync(function () {
var settings = new Stimulsoft.Report.Export.StiExcelExportSettings();
var service = new Stimulsoft.Report.Export.StiExcel2007ExportService();
var stream = new Stimulsoft.System.IO.MemoryStream();
settings.dataExportMode = Stimulsoft.Report.Export.StiDataExportMode.DataAndHeaders;
service.exportTo(report, stream, settings);
});