diff --git a/com.actionsoft.apps.coe.pal.output.pr/src/com/actionsoft/apps/coe/pal/output/pr/report1/Report1Gener.java b/com.actionsoft.apps.coe.pal.output.pr/src/com/actionsoft/apps/coe/pal/output/pr/report1/Report1Gener.java index 21ab16a7..4355b57c 100644 --- a/com.actionsoft.apps.coe.pal.output.pr/src/com/actionsoft/apps/coe/pal/output/pr/report1/Report1Gener.java +++ b/com.actionsoft.apps.coe.pal.output.pr/src/com/actionsoft/apps/coe/pal/output/pr/report1/Report1Gener.java @@ -1100,6 +1100,7 @@ public class Report1Gener { if(headerlogo.size()>0){ FormFile formFile = headerlogo.get(0); DCContext dc = SDK.getBOAPI().getFileDCContext(formFile); + dataMap.put("LOGOURL",dc.getFilePath()); InputStream inputStream = SDK.getDCAPI().read(dc); try { // 使用ByteArrayOutputStream来收集InputStream中的数据 diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/output/util/OutputWordUtil.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/output/util/OutputWordUtil.java index 6dac1251..7a695c10 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/output/util/OutputWordUtil.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/output/util/OutputWordUtil.java @@ -704,9 +704,9 @@ public class OutputWordUtil { TableCell cellImg = table.getRows().get(0).getCells().get(1); //创建 DocPicture 类的对象 DocPicture picture = new DocPicture(templateDoc); - /* + String logoUrl = dataMap.getString("LOGOURL"); - picture.loadImage(logoUrl);*/ + picture.loadImage(logoUrl); //设置图片大小 picture.setWidth(75); picture.setHeight(90); diff --git a/com.awspaas.user.apps.coe.pal.output.bd/src/com/awspaas/apps/coe/pal/output/bd/report1/Report1Gener.java b/com.awspaas.user.apps.coe.pal.output.bd/src/com/awspaas/apps/coe/pal/output/bd/report1/Report1Gener.java index ebc8e6ff..447402a3 100644 --- a/com.awspaas.user.apps.coe.pal.output.bd/src/com/awspaas/apps/coe/pal/output/bd/report1/Report1Gener.java +++ b/com.awspaas.user.apps.coe.pal.output.bd/src/com/awspaas/apps/coe/pal/output/bd/report1/Report1Gener.java @@ -717,6 +717,7 @@ public class Report1Gener { if(headerlogo.size()>0){ FormFile formFile = headerlogo.get(0); DCContext dc = SDK.getBOAPI().getFileDCContext(formFile); + dataMap.put("LOGOURL",dc.getFilePath()); InputStream inputStream = SDK.getDCAPI().read(dc); try { // 使用ByteArrayOutputStream来收集InputStream中的数据 diff --git a/com.awspaas.user.apps.coe.pal.output.zd/src/com/awspaas/apps/coe/pal/output/zd/report1/Report1Gener.java b/com.awspaas.user.apps.coe.pal.output.zd/src/com/awspaas/apps/coe/pal/output/zd/report1/Report1Gener.java index fb6f6dc5..5e3b0020 100644 --- a/com.awspaas.user.apps.coe.pal.output.zd/src/com/awspaas/apps/coe/pal/output/zd/report1/Report1Gener.java +++ b/com.awspaas.user.apps.coe.pal.output.zd/src/com/awspaas/apps/coe/pal/output/zd/report1/Report1Gener.java @@ -338,6 +338,7 @@ public class Report1Gener { if(headerlogo.size()>0){ FormFile formFile = headerlogo.get(0); DCContext dc = SDK.getBOAPI().getFileDCContext(formFile); + dataMap.put("LOGOURL",dc.getFilePath()); InputStream inputStream = SDK.getDCAPI().read(dc); try { // 使用ByteArrayOutputStream来收集InputStream中的数据