UseOfficeCExcelOptionsSheetNames Method |
Allows to specify custom sheets to convert by their names
Namespace: SautinSoftAssembly: UseOffice (in UseOffice.dll) Version: 2024.12.12
Syntax public void SheetNames(
string[] sheetNames
)
Public Sub SheetNames (
sheetNames As String()
)
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);
u.CloseExcel();
}
Dim u As SautinSoft.UseOffice = New UseOffice()
If u.InitExcel() = 0 Then
u.Sheets.Custom(New String () {"Page 1", "Table"})
u.ConvertFile("D:\Workbook.xlsx", "d:\Result.pdf", UseOffice.eDirection.XLSX_to_PDF)
u.CloseExcel()
End If
See Also