如何从 C# Windows 窗体应用程序写入 Word 文档(以特定格式)
我正在开发一个 C# Windows 应用程序,它捕获用户的输入(以大量文本框、单选按钮和下拉菜单的形式)。
我需要将捕获的用户响应写入一个 Word 文档,该文档适合具有预定义模板的 Word 文档。
有人可以让我知道实现这一目标的最佳方法吗?
提前致谢,
维杰
I am developing a C# windows application , which captures the user's inputs(in the form of numerous textboxes, radio buttons and drop downs).
I need to write the captured response from User to a word document which fits in the word document which has a predefined template.
Could some one let me know the best way to approach that?
Thanks in advance,
Vijay
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据您的需求的复杂程度和您的财力,有一个很棒的产品,名为 Aspose.Words。我们使用他们的产品套件在工作中生成办公文档,并且它们非常易于使用。不幸的是,这是一种非常昂贵的产品,因此除非您非常致力于您的产品,否则它可能不适合您。
否则,您可能需要查看Microsoft 的 Open XML SDK。
[除了使用过他们的产品之外,我与该公司没有任何关系。]
Depending upon how complex your needs are and the depth of your pockets there is a great product called Aspose.Words. We use their suite of products for generating office documents at work and they're really easy to work with. It's unfortunately a pretty expensive product so unless you are very committed to your product it might not be right for you.
Otherwise you might want to check out Microsoft's Open XML SDK.
[I have no affiliation with the company, aside from having used their products.]