ExcelToPdfCSheetCustom Method |
Convert custom sheets from workbook
Namespace: SautinSoftAssembly: SautinSoft.ExcelToPdf (in SautinSoft.ExcelToPdf.dll) Version: 2024.11.30
Syntaxpublic void Custom(
int[] sheets
)
Public Sub Custom (
sheets As Integer()
)
Parameters
- sheets Int32
- Array of sheets
ExampleSpecify custom sheets of workbook for converting
SautinSoft.ExcelToPdf x = new SautinSoft.ExcelToPdf();
x.Sheets.Custom(new int[] { 1, 3 });
x.ConvertFile(@"d:\Workbook.xls", @"d:\Hardcopy.pdf");
Specify custom sheets of workbook for converting
Dim x As New SautinSoft.ExcelToPdf()
x.Sheets.Custom(New Integer() { 1, 3 })
x.ConvertFile("d:\Workbook.xls", "d:\Hardcopy.pdf")
See Also