导出手册报错,代码提交

This commit is contained in:
yujh 2024-10-29 14:36:40 +08:00
parent 55f190d261
commit b01f4d168c

View File

@ -704,9 +704,9 @@ public class OutputWordUtil {
TableCell cellImg = table.getRows().get(0).getCells().get(1); TableCell cellImg = table.getRows().get(0).getCells().get(1);
//创建 DocPicture 类的对象 //创建 DocPicture 类的对象
DocPicture picture = new DocPicture(templateDoc); DocPicture picture = new DocPicture(templateDoc);
//从磁盘加载图片 /*
String logoUrl = dataMap.getString("LOGOURL"); String logoUrl = dataMap.getString("LOGOURL");
picture.loadImage(logoUrl); picture.loadImage(logoUrl);*/
//设置图片大小 //设置图片大小
picture.setWidth(75); picture.setWidth(75);
picture.setHeight(90); picture.setHeight(90);