设置打印预览的时候默认导出Excel文件
XtraReport mReport = new XtraReport(); mReport.PrintingSystem.ExportOptions.PrintPreview.DefaultExportFormat = PrintingSystemCommand.ExportXls;
老的方法
XtraReport mReport = new XtraReport();
PrintControl printCtrl2 = new PrintControl();
printCtrl2.PrintingSystem = mReport.PrintingSystem;
PrintBarManager printBarMgr2 = new PrintBarManager();
printBarMgr2.PrintControl.PrintingSystem.ExportDefault = PrintingSystemCommand.ExportXlsx;