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: 2024.6.26
Syntax
public void SheetNames(
	string[] sheetNames
)

Parameters

sheetNames  String
Array with sheet numbers
Example
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