浏览代码

Report, Export xlsx

MaiXinRong 8 年之前
父节点
当前提交
505f46dd0a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Forms/ReportsFrm.pas

+ 1 - 1
Forms/ReportsFrm.pas

@@ -1438,7 +1438,7 @@ procedure TReportsForm.ExportXlsReport(AStartPage, AEndPage: Integer;
       // 康博士代码中写批量打印是,用Printer.Canvas,打印当前时,用PreviewBox.Canvas。不懂为什么
       //APrintCom.OutputToExcelRangeXMLEx(PreviewBox.Canvas, AStartPage,
           //AEndPage, GetTemplateXlsFileName, AFileName, Border, ExcelMode)
-      APrintCom.OutputToExcelFileOE(PreviewBox.Canvas, AStartPage, AEndPage, GetTemplateXlsFileName, ExcelMode, Border)
+      APrintCom.OutputToExcelFileOE(PreviewBox.Canvas, AStartPage, AEndPage, GetTemplateXlsFileName, ExcelMode, Border, nil)
     else
       APrintCom.OutputToExcelFile(PreviewBox.Canvas, AStartPage,
           AEndPage, GetTemplateXlsFileName, AFileName, ExcelMode, Border);