コード例 #1
0
        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();
            }
        }
コード例 #2
0
 private void CreateNewSheet()
 {
     _currentSheet = _workbook.Worksheets.CreateStreamsheet(ExcelRenderRes.SheetName + (_workbook.Worksheets.Count + 1).ToString(CultureInfo.InvariantCulture), _createTempStream);
     _currentSheet.ShowGridlines = false;
 }
コード例 #3
0
 public UnresolvedStreamsheet(Streamsheet sheet, List <LinkInfo> bookmarks)
 {
     _streamsheet = sheet;
     _bookmarks   = bookmarks;
 }