Hi,
Tried to convert excel to PDF, since i have hide one of the sheets in the workbook ,as i tried to convert it , exception thrown that index out of array ,also upload the sample.
using (var wb = new Workbook(inputFilePath))
{
foreach (Worksheet ws in wb.Worksheets)
ws.SetVisible(ws.IsVisible, false);
pdfSaveOptions.OnePagePerSheet = false;
wb.Save(pdfFile, pdfSaveOptions);
}
Thanks in advance.