Click or drag to resize

ExcelToPdfCSheetCustom Method

Convert custom sheets from workbook

Namespace: SautinSoft
Assembly: SautinSoft.ExcelToPdf (in SautinSoft.ExcelToPdf.dll) Version: 2023.11.22
Syntax
public void Custom(
	int[] sheets
)

Parameters

sheets  Int32
Array of sheets
Example
Specify 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