Browse Source

优化上传

callm 15 hours ago
parent
commit
0ed030623c
1 changed files with 5 additions and 1 deletions
  1. 5 1
      UAS_MES_ZKLH/FunctionCode/Query/Query_SOP.cs

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

@@ -195,8 +195,12 @@ namespace UAS_MES_NEW.Query
                                 }
                                 else
                                 {
-                                    newPrintArea = $"A1:{lastColLetter}{dataRowsPerPage}";
+                                    newPrintArea = $"A1:{lastColLetter}{newTotalRows}";
+                                    //newPrintArea = $"A1:{lastColLetter}{dataRowsPerPage}";
                                 }
+                                Console.WriteLine(totalPages+" "+ dataRowsPerPage+" "+ newTotalRows);
+                                Console.WriteLine($"A1:{lastColLetter}{(totalPages == 0 ? dataRowsPerPage : newTotalRows)}");
+                                Console.WriteLine($"A1:{lastColLetter}{dataRowsPerPage}");
                                 newshe.PageSetup.PrintArea = newPrintArea;
 
                                 newshe.PageSetup.CenterHorizontally = true;