Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望图片能够居中 #402

Open
lcgyl opened this issue Oct 20, 2023 · 8 comments
Open

希望图片能够居中 #402

lcgyl opened this issue Oct 20, 2023 · 8 comments

Comments

@lcgyl
Copy link

lcgyl commented Oct 20, 2023

Bug描述
目前通过模版导出数据的图片老是会覆盖掉左上两条变线,希望能够支持或者有没有办法给搞到居中去

期望的结果
希望能够支持

@liaochong
Copy link
Owner

liaochong commented Oct 20, 2023 via email

@lcgyl
Copy link
Author

lcgyl commented Oct 21, 2023

目前使用的是

<dependency>
            <groupId>com.github.liaochong</groupId>
            <artifactId>myexcel</artifactId>
            <version>4.3.2</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.poi</groupId>
                    <artifactId>poi-ooxml-schemas</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

@liaochong
Copy link
Owner

liaochong commented Oct 22, 2023 via email

@lcgyl
Copy link
Author

lcgyl commented Oct 23, 2023

image
这个是被覆盖的实际导出效果

@lcgyl
Copy link
Author

lcgyl commented Oct 23, 2023

image
但是选中图片,看起来好像又是对的,但是就是被覆盖了

@lcgyl
Copy link
Author

lcgyl commented Oct 23, 2023

image
这个是我使用的excel 版本

@lcgyl
Copy link
Author

lcgyl commented Oct 23, 2023

同时发现了一个多sheet模版导出合并单元格的新问题
复现模版+数据:

datas.zip

复现步骤:

  1. 注释一下代码
    image
  2. 打开以下代码
    image
    使用相同的数据导出,在第二个sheet页出现了行混乱和合并错误问题

正常的格式:
image
异常的格式:
image

@lcgyl
Copy link
Author

lcgyl commented Oct 24, 2023

而且模版中设置的宽度也不生效了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants