public static ISheet CopyTo(this ISheet sourceSheet, HSSFWorkbook targetBook, string targetSheetName, bool includeStyle, bool includeFormula) { ISheet sht = targetBook.CreateSheet(targetSheetName); targetBook.CopySheets((HSSFSheet)sourceSheet, (HSSFSheet)sht, includeStyle); return(sht); }