Example usage for org.apache.poi.ss.usermodel Workbook removeName

List of usage examples for org.apache.poi.ss.usermodel Workbook removeName

Introduction

In this page you can find the example usage for org.apache.poi.ss.usermodel Workbook removeName.

Prototype

void removeName(Name name);

Source Link

Document

Remove a defined name

Usage

From source file:org.formulacompiler.spreadsheet.internal.excel.xls.saver.ExcelXLSSaver.java

License:Open Source License

private void removeDataFrom(final Workbook _xwb) {
    for (int i = _xwb.getNumberOfSheets() - 1; i >= 0; i--) {
        _xwb.removeSheetAt(i);/*from   w w w. ja  va  2 s  .c o  m*/
    }
    for (int i = 0; i < _xwb.getNumberOfNames(); i++) {
        _xwb.removeName(i);
    }
}