Apache POI "smart drag copy" 单元格

Apache POI "smart drag copy" cell

我想知道 Apache POI 项目中是否有任何函数代表 Excel 中通过拖动右下角的某个单元格以 "smart copy" 给出的功能单元格的内容/公式。

特别是,我想避免为每一行重新生成公式字符串的编程工作。

我在 POI 文档中没有找到类似的内容。

已经谢谢了, 最大值

没有。因为那是 Excel 的 UI 的功能,而不是文档功能。但你不应该需要它。使用 for 循环 iterate over the rows, and change the string as necessary. If your string is particularly cumbersome for simple replacements, you could consider a templating engine like Velocity or Freemarker.