Entropy2019
V2EX  ›  Java

请问各位大神,导出报表中如何实现单元格合并

  •  
  •   Entropy2019 · Jun 20, 2019 · 1933 views
    This topic created in 2591 days ago, the information mentioned may be changed or developed.

    请问系统导出报表中如何实现单元格自动合并啊?

    xiaolong620
        1
    xiaolong620  
       Jun 21, 2019
    //合并单元格
    //int firstRow 起始行, int lastRow 结束行, int firstCol 起始列, int lastCol 结束
    sheet.addMergedRegion(new CellRangeAddress(0,0,1,8));

    是这个吗,不是就算了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2768 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 12:32 · PVG 20:32 · LAX 05:32 · JFK 08:32
    ♥ Do have faith in what you're doing.