GithubHelp home page GithubHelp logo

Comments (7)

xin-lai avatar xin-lai commented on July 24, 2024

可以考虑,不过目前精力有限。
不过建议先可以试着自己实现下,提交PR。

from magicodes.ie.

xin-lai avatar xin-lai commented on July 24, 2024

兄台,我提供思路,你有兴趣来实现不?

from magicodes.ie.

Nokecy avatar Nokecy commented on July 24, 2024

@xin-lai 可以的~~~

from magicodes.ie.

xin-lai avatar xin-lai commented on July 24, 2024

@Nokecy 他这种模板的方式虽然直观,但是不太建议。
其实Excel、Word本质上是一个压缩包,里面由遵循Office open xml的xml等文件组成。因此我们可以根据以下思路来实现:

  1. 基于Office制作基础模板
  2. 解压模板(使用压缩工具)
  3. 提取关键Sheet的xml,基于相关规则编写Razor模板
  4. 生成相关的Sheet.xml到模板目录,然后压缩为扩展名为“.xlsx”的压缩包

完成这些之后,我们可以优化和简化整个流程

from magicodes.ie.

riyuexing avatar riyuexing commented on July 24, 2024

请问大神,模板导出时支持插入图片吗?

from magicodes.ie.

xin-lai avatar xin-lai commented on July 24, 2024

请问大神,模板导出时支持插入图片吗?

暂不支持,后续会支持

from magicodes.ie.

xin-lai avatar xin-lai commented on July 24, 2024

已完成

from magicodes.ie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.