You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 462cc2b
Browse filesBrowse the repository at this point in the historyBrowse files
if(fromRow>toRow)thrownewArgumentOutOfRangeException("Invalid row range. toRow must be equal or greater than fromRow");
@@ -33,7 +35,8 @@ public PdfCellCollection(int fromRow, int toRow, int fromColumn, int toColumn)
33
35
ToColumn=toColumn;
34
36
intx=toRow-fromRow+1;
35
37
inty=toColumn-fromColumn+1;
36
-
38
+
if((long)x*y>MaxCells)
39
+
thrownewSystem.InvalidOperationException($"PDF export range is too large ({x} rows × {y} columns). "+"Reduce the print area or the worksheet's used range.");
0 commit comments