Преглед изворни кода

自动行高细节调整(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