Git Product home page Git Product logo

Comments (8)

fwk1010 avatar fwk1010 commented on June 8, 2024

使用动态模板方式,追加内容,如不同的表格。
http://deepoove.com/poi-tl/#_%E6%A8%A1%E6%9D%BF%E7%94%9F%E6%88%90%E6%A8%A1%E6%9D%BF

from poi-tl.

polarlights avatar polarlights commented on June 8, 2024

使用动态模板方式,追加内容,如不同的表格。 http://deepoove.com/poi-tl/#_%E6%A8%A1%E6%9D%BF%E7%94%9F%E6%88%90%E6%A8%A1%E6%9D%BF

嗯。谢谢。有查看过技术文档。文档中的场景是针对相同表格作扩展定制;我的场景里面多了1个表格拆分。

from poi-tl.

fwk1010 avatar fwk1010 commented on June 8, 2024

可以拼接不同的表格的,甚至是段落等。本质是doc的一部分,详细参见Documents.DocumentBuilder。我们这边用到的场景根据json配置文件动态生成一部分文档

from poi-tl.

cuitz avatar cuitz commented on June 8, 2024

我使用的AbstractRenderPolicy,完全自己控制生成表格和样式,不过我的场景是生成多个表格,每个表格中间插入一个空行。

from poi-tl.

polarlights avatar polarlights commented on June 8, 2024

@fwk1010 @cuitz 谢谢。我分别看下相关实现。

from poi-tl.

polarlights avatar polarlights commented on June 8, 2024

@fwk1010 @cuitz 请教一个问题,table 的方法中,没有拿到当前table所在paragraph的;如果使用XPFDocument创建表格,默认就放在文件的最后一行了,不是很符合预期。我想把它贴在当前表格下面。

from poi-tl.

polarlights avatar polarlights commented on June 8, 2024

https://stackoverflow.com/questions/46337263/apache-poi-word-best-way-to-add-text-after-table

from poi-tl.

polarlights avatar polarlights commented on June 8, 2024

there's another way that render the whole table and then copy and edit the tables.
https://stackoverflow.com/questions/58014683/copy-table-from-templates-with-fixed-place-using-apache-poi

from poi-tl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.