Explorar o código

优化上传功能

callm hai 16 horas
pai
achega
f56810d0c6
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  1. 9 1
      UAS_MES_ZKLH/FunctionCode/Query/Query_SOP.cs

+ 9 - 1
UAS_MES_ZKLH/FunctionCode/Query/Query_SOP.cs

@@ -188,7 +188,15 @@ namespace UAS_MES_NEW.Query
                                 }
                                 int newTotalRows = newshe.Cells.MaxDataRow + 1;
 
-                                string newPrintArea = $"A1:{lastColLetter}{(totalPages == 0 ? dataRowsPerPage : newTotalRows)}";
+                                string newPrintArea = "";
+                                if (she.Name == "控制页")
+                                {
+                                    newPrintArea = $"A1:{lastColLetter}{25}";
+                                }
+                                else
+                                {
+                                    newPrintArea = $"A1:{lastColLetter}{dataRowsPerPage}";
+                                }
                                 newshe.PageSetup.PrintArea = newPrintArea;
 
                                 newshe.PageSetup.CenterHorizontally = true;