Find if the Worksheet is Dialog Sheet
Contents
[
Hide
]
Possible Usage Scenarios
Dialog Sheet is an old format of the sheet that contains a dialog box. Such a sheet could be inserted by an older version of Microsoft Excel e.g. 2003 as shown in this screenshot. It can also be inserted with VBA in newer versions e.g. Microsoft Excel 2016.
You can find if the sheet is a dialog sheet or some other type of sheet with Worksheet.Type property provided by Aspose.Cells. If it returns enumeration value SheetType.DIALOG, then it means, you are dealing with a dialog sheet.
Find if the Worksheet is Dialog Sheet
The following sample code loads the sample Excel file that contains a dialog sheet. It checks the Worksheet.Type property compares it with SheetType.DIALOG and then prints the message. Please see the console output of the sample code given below for more help.
Sample Code
Console Output
Worksheet is a Dialog Sheet.