Office 插件问题

发布于 2024-10-16 16:25:22 字数 311 浏览 6 评论 0原文

我目前正在开发一个插件,旨在编辑存储在 codendi forge 中的办公文档。 第一个问题是我的文件上的只读标志。一个简单的“另存为”就解决了这个问题。 这个解决方案没问题,直到我删除了 codendi 的 cookie,然后我收到了一个错误页面,而不是我的文件。

我想要做的是能够在开始下载文件之前捕获 Office 触发的事件。然后我可以提示用户进行身份验证并自己重新创建 cookie,而无需用户打开 Internet Explorer 并登录。

有没有办法捕获表明 word、excel 和 powerpoint 即将开始下载的事件?

提前致谢

I'm currently developing an add-in aimed to edit office documents stored in a codendi forge.
First problem was the read only flag on my file. A simple ‘save as’ solved that problem.
This solution was ok until I removed codendi’s cookie then instead of my file I received an error page.

What I want to do is to be able to catch an event triggered by office before it starts downloading the file. Then I can prompt the user for authentication and recreate a cookie by myself without the need for the user to open internet explorer and sign in.

Is there a way to catch an event indicating that word, excel and powerpoint are about to start a download?

Thanks in advance

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

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

发布评论

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

评论(1

葬花如无物 2024-10-23 16:25:22

我不确定我是否真的明白你想做什么。
我认为任何办公应用程序实际上都不会下载所需的文件,它是由浏览器下载到临时文件中并从中打开的。
我认为如果您想从客户端编辑文件,最好的方法是使用肥皂界面,它是 Codendi 的一部分。查看

[yourforgehostname]/soap

[yourforgehostname]/soap/codendi.wsdl.php?wsdl

如果您想以更易读的形式查看 wsdl,请考虑使用

http://tomi.vanek.sk/index.php?page=wsdl-viewer

支持的 API 之一是登录

希望它有帮助

I'm not sure I really understand what you want to do.
I don't think any office application actually downloads the wanted file, it is downloaded by your browser in a temporary file and therefrom opened by it.
I think that if you want to edit the file from you client, the best way would be to use the soap interface, which is part of Codendi. Have a look to

[yourforgehostname]/soap

[yourforgehostname]/soap/codendi.wsdl.php?wsdl

If you want to see the wsdl in a more readable form consider using

http://tomi.vanek.sk/index.php?page=wsdl-viewer

One of the supported API is login

Hope it helps

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