小编Raj*_*amy的帖子

如何将Perspective Bar Switcher添加到纯eclipse 4 rcp应用程序中

我创建了一个纯Eclipse e4富客户端平台应用程序模型.我使用透视图堆栈创建了多个透视图,但我无法切换其他透视图,因为Eclipse e4中没有默认透视图条或切换器图标.如何在纯Eclipse e4中实现透视切换器?

eclipse eclipse-rcp e4

3
推荐指数
1
解决办法
1528
查看次数

如何使用Apache Java POI在MS Excel中插入表格

我正在尝试使用Java Apache Poi在Excel中插入表格。但是,当我打开xlsx文件时,它抛出以下错误,但我无法解决:

Removed Part: /xl/tables/table1.xml part with XML error. (Table) Load error. Line 2
repaired records: table from /xl/tables/table1.xml part (table)
Run Code Online (Sandbox Code Playgroud)

我的代码如下:

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFTable;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTable;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableColumn;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableColumns;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableStyleInfo;

public class Test {

  public static void main(String[] args) throws FileNotFoundException, IOException {
    XSSFWorkbook workbook = new XSSFWorkbook();
    XSSFSheet sheet = workbook.createSheet("Architecture");

    XSSFTable table = sheet.createTable();
    CTTable cttable = table.getCTTable();


    cttable.setDisplayName("Table1");
    cttable.setId(1);
    cttable.setName("Test");
    cttable.setRef("A1:C11");
    cttable.setTotalsRowShown(false);

    CTTableStyleInfo styleInfo …
Run Code Online (Sandbox Code Playgroud)

java xlsx jexcelapi apache-poi

2
推荐指数
1
解决办法
3193
查看次数

标签 统计

apache-poi ×1

e4 ×1

eclipse ×1

eclipse-rcp ×1

java ×1

jexcelapi ×1

xlsx ×1