Explorar o código

Report, Export xlsx

MaiXinRong %!s(int64=8) %!d(string=hai) anos
pai
achega
505f46dd0a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);