Set custom sheets for converting. By default all sheets from workbook will be converted
Namespace:
SautinSoftAssembly: SautinSoft.XlsToPdf (in SautinSoft.XlsToPdf.dll) Version: 2.0.4.13
Syntax
| C# | Visual Basic |
public XlsToPdf..::.CSheet Sheets { get; set; }
Public Property Sheets As XlsToPdf..::.CSheet
Remarks
You may specify: all, even, odd and custom sheets
Examples
SautinSoft.XlsToPdf x = new SautinSoft.XlsToPdf(); //Select 1st and 3rd sheets for converting x.Sheets.Custom(new int []{1,3}); //Select all sheets for converting x.Sheets.All(); x.ConvertFile(@"d:\Workbook.xls", @"d:\Hardcopy.pdf");
Dim x As New SautinSoft.XlsToPdf() 'Select 1st and 3rd sheets for converting x.Sheets.Custom(New Integer (){1,3}) 'Select all sheets for converting x.Sheets.All() x.ConvertFile("d:\Workbook.xls", "d:\Hardcopy.pdf")