PhotonIV

Results 10 comments of PhotonIV

csv不是Microsoft的文档,应该只能这样插入 插入-对象-由文件创建 ![image](https://user-images.githubusercontent.com/49431461/150045523-0de4eab7-be64-499b-86a9-dc5734bd8415.png)

目前发现这个问题出现的版本1.11.1 1.12.0

使用wps打开不会出现图标异常,用word打开才出现这个异常

在本地调试的时候也出现了图标异常问题,之前使用1.10.2的时候,图标异常会出现在服务器端,本地不会出现

@Sayi 好的 我试试

@Sayi 自定义图片效果一样,第一次下载正常,第二次图标就不正常了,本地环境和服务器环境都是。

刚刚尝试的版本是1.11.1

![image](https://user-images.githubusercontent.com/49431461/167336561-6e83677d-891d-4a5b-a5c7-e120dbb072b4.png) 你好sayi,在引用了1.12.0的包后,PictureRenderData改成了抽象类,本来想在1.12.0自定义图标,但是抽象类没法实例化

    public void downloadReport1( HttpServletResponse response) throws IOException {         Configure config = Configure.builder().bind("annex", new AttachmentRenderPolicy()).build();         Map

你好sayi,我分析了一下word的xml,发现正常的word的xml如下 ![image](https://user-images.githubusercontent.com/49431461/167375492-54aa1de1-fa7d-4ee7-b835-b14efd7a59bd.png) 异常的wordxml如下: ![Z7T)3SOR13I76OKONXJX ZF](https://user-images.githubusercontent.com/49431461/167375561-922d9418-f440-4662-ade2-bedf10d259ca.png) 看上去是shapeId的问题,所以我重写了attrachmentRenderPolicy 这是原来的代码: ![image](https://user-images.githubusercontent.com/49431461/167375751-37b450e3-cb9c-4273-8a11-2d4910ee9aca.png) 现在我把判断去掉了,当然这样可能会引起多sheet的excel打印异常,不过我这里是单sheet的,所以我就暂时这样处理了 ![9Y2VZONSJV`F6L9D U9(Z$H](https://user-images.githubusercontent.com/49431461/167375926-33db9401-50de-4d7a-bf1b-5784d24722a2.png) 最后测试了一下,每次打印的图标都是正常的 ![image](https://user-images.githubusercontent.com/49431461/167376101-8e031203-3306-4901-8dad-ecab24dc916a.png)