Example to Input Data
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 20/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- csharp
调研方向
Start with the Invoice Sample and the existing documentation, then trace the CreateInvoice() and CustomProperty examples mentioned in the issue. Determine whether MVC/Razor form values can populate the invoice data and generate a Word file, and document the relevant resources or usage path.
由索引模型根据 Issue 内容生成。
描述
I'm wondering if there is a way to set this up using an intranet. I was looking at the Invoice Sample, and it's actually spot on with what I am looking to do. I just can't figure out the best way to hook this up so that I can just input the information into some text fields or other controls (radio button, etc.). I use MVC/Razor web pages to input data for other stuff, and I was thinking to leverage that to just fill in the Invoice data and then click a button to generate a Word file.
I was thinking to just try using a call to, for example, CreateInvoice() on a button click and then hooking my models properties in to replace the CustomProperty, but it isn't that easy, is it? So, something like:
templateDoc.AddCustomProperty( new CustomProperty( "InvoiceNumber", new invoiceNumber ) );
Basically, I am just trying to determine if DocX would work for me before I go further, and needed to test it out.
Does anyone know of any resources to accomplish something like this. I tried looking through the documentation but nothing stood out. If I missed something obvious forgive me in advance.
- 主要语言
- C#
- 星标
- 1.9k
- 派生
- 481
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
xceedsoftware/DocX 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 48/100
xceedsoftware/DocX#489 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
xceedsoftware/DocX#488 · 1 条评论 · 1 个 reaction ·
-
keep format未关闭
难度 3/5 1-2 天 新手友好度 25/100
xceedsoftware/DocX#487 · 3 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
xceedsoftware/DocX#485 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
xceedsoftware/DocX#482 · 4 条评论 ·
查看 xceedsoftware/DocX 的全部 Issue
相似的 Issue
-
enhancement needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/microsoft-ui-reactor#1460 ·
维护者通常 1 天内回复
-
t/bug
难度 2/5 1-3 小时 新手友好度 75/100
dotnet/maui#39950 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
CommunityToolkit/Datasync#600 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
NimblePros/deviq-hugo#121 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
philterd/phileas-dotnet#188 ·