Entropy2019
V2EX  ›  Java

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

  •  
  •   Entropy2019 · Jun 20, 2019 · 1935 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   ·   1389 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 17:00 · PVG 01:00 · LAX 10:00 · JFK 13:00
    ♥ Do have faith in what you're doing.