Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
When reading data from the worksheet, we need to know the maximum area.
When copying all data from a worksheet, we need to know the maximum area.
When exporting a specified area to HTML and PDF, we need to know the maximum area.
Aspose.Cells for .Net contains different ways to find max range in a worksheet.
In Aspose.Cells, if the row and column objects are initialized, these rows and columns will be counted towards the maximum area, even if they are empty.
In most cases, we only need to obtain all the ranges containing all the data, even if the empty cells outside the range are formatted.
The settings for shapes, tables, and pivot tables will be ignored.
When we export all data from the worksheet to HTML, PDF, or images, we need to obtain an area containing all visible objects, including data, styles, graphics, tables, and pivot tables.
The following code shows how to render the max display range to HTML:
Here is the source Excel file.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.