Delete Blank Rows and Columns in a Worksheet
Contents
[
Hide
]
It is possible to delete all blank rows and columns from a worksheet. This is useful when, for example, generating a PDF file from a Microsoft Excel file and want to convert only rows and columns that contain data.
Use the following Aspose.Cells methods to delete empty rows and columns:
- To delete blank rows, use the Cells.DeleteBlankRows() method.
- To delete blank columns, use the Cells.DeleteBlankColumns() method.