当前位置:网站首页>Using POI TL to insert multiple pictures and the same data of multiple rows of cells into the table cells of word template at one time, it is a functional component for automatic merging
Using POI TL to insert multiple pictures and the same data of multiple rows of cells into the table cells of word template at one time, it is a functional component for automatic merging
2022-07-29 05:32:00 【crystal lattices 】
One 、 How to insert multiple pictures
1) Use blocks provided in the document to insert multiple pictures
Use of blocks : stay word Use in templates :
{ {?images}}
{ {url}}
{ {/images}}
After defining the template in this way , The structure of the data model is as follows :
data.put("items", new ArrayList<JSONObject>(){
{
add(new JSONObject().fluentPut("url", " Picture links 1"));
add(new JSONObject().fluentPut("url", " Picture links 2"));
add(new JSONObject().fluentPut("url", " Picture links 3"));
}});The above picture links can also be through Pictures.ofUrl().create() structure PictureRenderData Use .
2) Customize the plug-in to insert multiple pictures
When inserting multiple pictures according to the method , You must use a list of objects , That is to say, it must be in items List add contains url Object of property ; We want to make it easier to insert multiple graphs , Use '&' Character as the prefix of the custom plug-in .
The plug-in code for inserting multiple pictures is as follows :
package com.fight.strive.sys.modules.poi_tl;
import com.deepoove.poi.data.PictureRenderData;
import com.deepoove.poi.policy.AbstractRenderPolicy;
imp边栏推荐
- JD cloud golden autumn cloud special offer is in progress! Code scanning participation activities
- 抽象类与接口
- 【C语言系列】—文件操作详解(上)
- Alibaba cloud architect Liang Xu: MES on cloud box helps customers quickly build digital factories
- 平行云CEO 李岩:CloudXR ,开启通往元宇宙的通道
- 321,京东言犀×NLPCC 2022挑战赛开赛!
- Detailed explanation of exit interrupt
- paddle.fluild常量计算报错‘NoneType‘ object has no attribute ‘get_fetch_list‘
- Pointer
- Vs code的安装步骤及环境配置
猜你喜欢

Container security open source detection tool - veinmind (mirror backdoor, malicious samples, sensitive information, weak password, etc.)

京东云金秋上云特惠进行中!扫码参与活动

Day 3

预约中,2022京东云产业融合新品发布会线上开启

阿里云架构师细说游戏行业九大趋势

Helm chart for Kubernetes

Helm chart for Kubernetes

直播预告|如何节省30%人工成本,缩短80%商标办理周期?

阿里云张新涛:异构计算为数字经济提供澎湃动力

Yangyonglin, vice president of Rushi Technology: when traditional industries encounter "digital space"
随机推荐
JD cloud and Forrester consulting released a hybrid cloud report that cloud Nativity has become a new engine driving industrial development
携手数字人、数字空间、XR平台,阿里云与伙伴共同建设“新视界”
365 day challenge leetcode 1000 questions - day 037 elements and the maximum side length of squares less than or equal to the threshold + the number of subsequences that meet the conditions
APP常用跨端技术栈深入分析
With cloud simulation platform, Shichuang technology supports the upgrading of "China smart manufacturing"
Occt learning 003 - MFC single document project
365 day challenge leetcode 1000 questions - day 042 array sequence number conversion + relative ranking discretization processing
Pointer
实现简单的数据库查询(不完整)
Best practices for elastic computing in the game industry
VIM editor use
Cryengine Technology
Side effects and sequence points
哈夫曼树以及哈夫曼编码在文件压缩上的应用
Alibaba cloud architect details nine trends in the game industry
【C语言系列】—文件操作详解(上)
【剑指offer】— 详解库函数atoi以及模拟实现atoi函数
QML type: mousearea
Redirection and files
[event preview] cloud development, efficient and intelligent - the second Alibaba cloud ECS cloudbuild developer competition is about to start