PHP 导出到 Excel 打开两次

发布于 2024-09-11 07:58:00 字数 256 浏览 2 评论 0原文

我正在使用 Spreadsheet_Excel_Writer 插件从 PHP Web 应用程序执行数据导出。现在一切都运行良好一段时间了,但我的客户刚刚告诉我,在过去几天中,导出行为发生了变化:下载的文件在 Excel 中打开,然后启动一个新的 Excel 实例并再次打开。如果您尝试编辑其中任何一个,它都会拒绝声明该文件已被锁定。这不是一个游戏停止者,但绝对很烦人。

他们告诉我最近唯一的变化是升级到 XP SP3。浏览器为IE7和IE8。

有什么想法先看哪里吗?

I'm using the Spreadsheet_Excel_Writer plug-in to perform a data export from a PHP web app. All has worked well for quite some time now, but my client just informed me that in the last couple days the export behavior has changed: the downloaded file opens in Excel, then starts a new Excel instance and opens again. If you try to edit either one, it refuses claiming the file is locked. It's not a game stopper, but definitely annoying.

They tell me the only change of late was upgrading to XP SP3. Browsers are IE7 and IE8.

Any ideas where to look first?

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

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

发布评论

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

评论(1

一人独醉 2024-09-18 07:58:00

我的客户在使用同名导出的缓存实例时遇到了一些 IE 问题。因此,为了缓解这种情况,我在导出的文件名上添加了一个随机字符串,并小心地保留了 xls 扩展名。

My client had some IE problems with cached instances of same-name exports. So, to alleviate that, I added a random string onto the exported filename, carefully keeping the xls extension.

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