瀏覽代碼

自动行高细节调整(Excel导出)

TonyKang 7 年之前
父節點
當前提交
8e7a915e6a
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Forms/ReportsFrm.pas

+ 4 - 0
Forms/ReportsFrm.pas

@@ -778,6 +778,10 @@ begin
     begin
       if (DrawType = DRAW_TYPE_EXCEL_XML) or (DrawType = DRAW_TYPE_EXCEL) or (DrawType = DRAW_TYPE_EXCEL_OE) then
       begin
+        if (dataType <> DATA_TYPE_DOUBLE) and (dataType <> DATA_TYPE_FLOAT) then
+        begin
+          contentFontRec.FontName := ReportConfig.ContentFont.Name;
+        end;
         contentFontRec.FontHeight := Round(ReportConfig.ContentFont.Size*4/3);
       end else if (isPrinting) then
       begin