来自 ASP.NET Web 应用程序的 Word 邮件合并

发布于 2024-09-13 14:15:12 字数 170 浏览 1 评论 0原文

最好的方法是什么?我无权访问数据库,因为它有防火墙。它需要通过网络界面来完成。

我可以生成一个csv文件并将其插入到word文档中,但这对我来说似乎很麻烦。有没有更好的方法来做到这一点?

谢谢

编辑:为了将来的参考,我最终使用了一个名为 Syncfusion DocIO 的库。

What is the best way to do this. I dont have access to the database since it is firewalled. It needs to be done throught the web interface.

I can generate a csv file and plug it into the word document, but it seems cumbersome to me. Is there any better way to do this?

Thanks

Edit:For future reference i ended up using a library called Syncfusion DocIO.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

平定天下 2024-09-20 14:15:12

OfficeWriter 是一个第三方库,可让您在 ASP.NET 中使用 DOC 或 DOCX 进行邮件合并。您没有指定所需的文件格式 - Leniel 的建议适用于 DOCX,但如果您需要 DOC(二进制)支持,您最好的选择是使用第三方。

在服务器上自动化 Office 从来都不是一个好主意(请参阅:http://support.microsoft.com/kb/ 257757)

http://www.officewriter.com

OfficeWriter is a third-party library that lets you do mail merges in ASP.NET with DOC or DOCX. You didn't specify which file format you needed - Leniel's suggestion will work for DOCX, but if you need DOC (binary) support your best bet is with a third-party.

Automating Office on the server is never a good idea (see: http://support.microsoft.com/kb/257757)

http://www.officewriter.com

白芷 2024-09-20 14:15:12

您尝试过 NTemplates 吗?不完全适用于 Word 文档,但如果您不介意使用 RTF,这可能是解决方案。从 ntemplates.codeplex.com 免费下载完整的源代码和示例

Have you tryed NTemplates? Not exactly for Word documents but if you don't mind using RTF, it might be the solution. Download full source code and examples for free from ntemplates.codeplex.com

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文