使用Word以编程方式启动编辑会话 [英] Programatically start an edit session with Word

查看:106
本文介绍了使用Word以编程方式启动编辑会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我想使用Word作为数据库应用程序的报告工具.我可以将数据导出到XML并将其嵌入.docx文件中.但是现在,我如何使用Word创建编辑会话",用户可以在其中进行修改,打印输出等.默认情况下,文件应为临时文件,并在关闭Word时丢弃.此外,用户在保存文件时还将收到通知/安全提醒.

有可能吗?

谢谢
/J

Hello,
I would like to use Word as Reporting tool for a database application. I can export the data to XML and embed it in a .docx file. But now, how do I create an "Edit session" with Word, in which the user can make modifications, print-outs etc. As default the file shall be temporary and discarded when Word is closed. Also, the user shall get a notification/security reminder when he saves the file.

Is that possible?

Thanks
/J

推荐答案

一种方法是将Interop与Word一起使用.看看 Microsoft.Office.Interop.Word命名空间 [ ^ ].您可以创建文档,连线事件等.
One way is to use Interop with Word. Have a look at Microsoft.Office.Interop.Word Namespace[^]. You can create documents, wire events etc.


这篇关于使用Word以编程方式启动编辑会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆