PHP 导出到 Excel 打开两次
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的客户在使用同名导出的缓存实例时遇到了一些 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.