MaiXinRong 8 년 전
부모
커밋
d41055719a
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      Forms/ReportsFrm.pas

+ 1 - 3
Forms/ReportsFrm.pas

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