ASP.NET页面中的Word文档(由页面控制)

发布于 2024-08-13 14:20:37 字数 93 浏览 2 评论 0原文

我想在 ASP.NET 页面中显示 Word 文档,并且希望能够根据页面上发生的事件(如按钮单击)突出显示文档中的文本。

是否可以?

谢谢。

I want to display a Word document in my ASP.NET page, and I want to be able to highlight text in the document according to events that happen on the page (like button clicks).

Is it possible?

Thanks.

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

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

发布评论

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

评论(2

枫以 2024-08-20 14:20:37

一切皆有可能,但可能需要一些工作 - 一种想法可能是在服务器端使用自动化来读取文档,然后显示包含该文档内容的页面,并允许在服务器端进行一些轻松的阅读/编辑再次使用自动化来更新文档。像这样的事情可能已经准备好实施并等待,但自己做也不应该太难。

Everything is possible but it may require some work - one idea might be to use automation on the server side to read the document and then display a page that contains the content of that document and allow some easy reading/editing that on the server side would again use automation to update the document. It's possible something like this is ready implemented and waiting but it also shouldn't be too hard to do yourself.

罪歌 2024-08-20 14:20:37

如果您仅运行 IE,则可以使用 VBA/vbscript 来完成。将 Word 文档转换为 html 可能更容易,然后您可以使用 javascript / css 并跨浏览器兼容。

If you are running IE only you can do it with VBA/ vbscript. Its probably easier to convert the word document to html and then you can use javascript / css and be cross browser compatible.

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