Click or drag to resize

UseOfficeCExcelOptionsSheetNames Method

Allows to specify custom sheets to convert by their names

Namespace:  SautinSoft
Assembly:  UseOffice (in UseOffice.dll) Version: 2023.11.14
Syntax
public void SheetNames(
	string[] sheetNames
)

Parameters

sheetNames
Type: SystemString
Array with sheet numbers
Examples
SautinSoft.UseOffice u = new UseOffice();
if (u.InitExcel() == 0)
{
    u.Sheets.Custom(new string [] {"Page 1", "Table"});
    u.ConvertFile(@"D:\Workbook.xlsx", @"d:\Result.pdf", UseOffice.eDirection.XLSX_to_PDF);
    //Make other conversions ....
    u.CloseExcel();
}
See Also