Skip to content
New issue

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

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

Already on GitHub? # to your account

Excel模板导出支持图片 #62

Closed
tiansfather opened this issue Mar 21, 2020 · 5 comments
Closed

Excel模板导出支持图片 #62

tiansfather opened this issue Mar 21, 2020 · 5 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@tiansfather
Copy link

给dto中的属性加了ExportImageField没有用
image

@hueifeng
Copy link
Member

Through the above code, I judge that he is correct.
Suggested examples or can you refer to
https://github.com/dotnetcore/Magicodes.IE/blob/master/docs/8.Excel%E5%9B%BE%E7%89%87%E5%AF%BC%E5%85%A5%E5%AF%BC%E5%87%BA.md

@tiansfather
Copy link
Author

示例不是基于模板的导出。
模板导出还有另一个问题是不支持表格中的单元格合并,如下图,存在行合并时,导出会报错
image
image

@hueifeng hueifeng added bug Something isn't working enhancement New feature or request labels Mar 21, 2020
@hueifeng
Copy link
Member

Exporting images with templates is not supported at this time, we will process them, and welcome to submit PR
现在不支持图片导出到模板,我们会进行处理的,同时也欢迎向我们提交PR

@xin-lai xin-lai self-assigned this Mar 31, 2020
@xin-lai xin-lai changed the title 如何导出图片到模板? Excel模板导出支持图片 Mar 31, 2020
@xin-lai xin-lai added this to the 2.2 milestone Apr 1, 2020
@xin-lai
Copy link
Collaborator

xin-lai commented Apr 2, 2020

这个功能即将发布。支持合并的单元格我们开了个新的Issue #72

xin-lai pushed a commit that referenced this issue Apr 2, 2020
@xin-lai
Copy link
Collaborator

xin-lai commented Apr 2, 2020

已发布2.2.0-beta8,支持以下渲染语法:

{{Image::ImageUrl?Width=50&Height=120&Alt=404}}
{{Image::ImageUrl?w=50&h=120&Alt=404}}
{{Image::ImageUrl?Alt=404}}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants