V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yuhangch
V2EX  ›  .NET

.net 有类似 Python -docx-template 的库

  •  
  •   yuhangch · 2022-08-10 10:19:16 +08:00 · 1635 次点击
    这是一个创建于 623 天前的主题,其中的信息可能已经有所发展或是发生改变。
    4 条回复    2022-08-10 10:45:09 +08:00
    INCerry
        1
    INCerry  
       2022-08-10 10:26:03 +08:00
    楼主是问的有没有操作 word 的库吗?如果你是.NET 的项目,而且没有跨平台需求,那可以直接调用 Microsoft Word 的 Com 接口使用,这里的 API 是最全面的。如果是.NET Core 1.x 以后的跨平台项目,下面有一些选择可以使用。

    https://github.com/xceedsoftware/DocX
    https://github.com/nissl-lab/npoi
    https://github.com/aspose-words/Aspose.Words-for-.NET
    ColinZeb
        2
    ColinZeb  
       2022-08-10 10:32:32 +08:00
    @INCerry 他说的是模板引擎吧
    yuhangch
        3
    yuhangch  
    OP
       2022-08-10 10:40:07 +08:00
    @INCerry
    @ColinZeb
    对,需要个模板引擎,生成报告用
    INCerry
        4
    INCerry  
       2022-08-10 10:45:09 +08:00   ❤️ 1
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3597 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 05:01 · PVG 13:01 · LAX 22:01 · JFK 01:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.