Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(sheets-print): print-range not include cell by value 0 (#6099)
WEI ZHANGe8109722e6da
diff --git a/packages/core/src/sheets/worksheet.ts b/packages/core/src/sheets/worksheet.tsindex 1635c47454..236d0fdec5 100644--- a/packages/core/src/sheets/worksheet.ts+++ b/packages/core/src/sheets/worksheet.ts@@ -333,7 +333,7 @@ export class Worksheet {|| style.bd.tl_br|| style.bd.tl_mr);- if ((cellValue && (cellValue.v || cellValue.p)) || style?.bg || isLegalBorder) {+ if ((cellValue && ((cellValue.v !== null && cellValue.v !== undefined && cellValue.v !== '') || cellValue.p)) || style?.bg || isLegalBorder) {if (rowInitd) {startRow = Math.min(startRow, rowIndex);} else {