Entropy2019
V2EX  ›  Java

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

  •  
  •   Entropy2019 · Jun 20, 2019 · 1942 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   ·   3122 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 12:55 · PVG 20:55 · LAX 05:55 · JFK 08:55
    ♥ Do have faith in what you're doing.