V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Entropy2019
V2EX  ›  Java

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

  •  
  •   Entropy2019 · Jun 20, 2019 · 1848 views
    This topic created in 2505 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   ·   928 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 21:17 · PVG 05:17 · LAX 14:17 · JFK 17:17
    ♥ Do have faith in what you're doing.