public void AdjustFirstWorksheetName(string reportName, bool addedDocMap) { if (string.IsNullOrEmpty(reportName)) { return; } Streamsheet streamsheet = null; if (addedDocMap) { if (_workbook.Worksheets.Count >= 2) { streamsheet = _workbook[1]; } } else if (_workbook.Worksheets.Count >= 1) { streamsheet = _workbook[0]; } if (streamsheet != null) { streamsheet.Name = ExcelGeneratorStringUtil.SanitizeSheetName(reportName).ToString(); } }
private void CreateNewSheet() { _currentSheet = _workbook.Worksheets.CreateStreamsheet(ExcelRenderRes.SheetName + (_workbook.Worksheets.Count + 1).ToString(CultureInfo.InvariantCulture), _createTempStream); _currentSheet.ShowGridlines = false; }
public UnresolvedStreamsheet(Streamsheet sheet, List <LinkInfo> bookmarks) { _streamsheet = sheet; _bookmarks = bookmarks; }