Click or drag to resize

UseOfficeCExcelOptionsSheetRange Method

Allows to specify custom sheets from X to Y

Namespace: SautinSoft
Assembly: UseOffice (in UseOffice.dll) Version: 2024.11.13
Syntax
public void SheetRange(
	int fromSheetNum,
	int toSheetNum
)

Parameters

fromSheetNum  Int32
Start number
toSheetNum  Int32
End number
Example
SautinSoft.UseOffice u = new UseOffice();
if (u.InitExcel() == 0)
{
    u.Sheets.Range(5,7);
    u.ConvertFile(@"D:\Workbook.xlsx", @"d:\Result.pdf", UseOffice.eDirection.XLSX_to_PDF);
    //Make other conversions ....
    u.CloseExcel();
}
See Also