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