Entropy2019
V2EX  ›  Java

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

  •  
  •   Entropy2019 · Jun 20, 2019 · 1941 views
    This topic created in 2595 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   ·   4657 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 10:01 · PVG 18:01 · LAX 03:01 · JFK 06:01
    ♥ Do have faith in what you're doing.