Browse Source

优化上传功能

callm 1 month ago
parent
commit
f56810d0c6
1 changed files with 9 additions and 1 deletions
  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;