Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Example to Input Data

Đang mở
#418 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Tài liệu
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
csharp
Lĩnh vực
documentation

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C#
Star
1.9k
Fork
482
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của xceedsoftware/DocX

Tất cả issue của xceedsoftware/DocX

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.