ColdFusion 8总是打开.XLS,想要.XLSX [英] ColdFusion 8 always opens .XLS, want .XLSX

查看:230
本文介绍了ColdFusion 8总是打开.XLS,想要.XLSX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ColdFusion 8.执行这样的操作:

 < cfheader name =content-dispositionvalue = attachment; filename = abc.xlsx> 
< cfcontent type =application / msexcel>
< html>

但我得到一个文件,例如 abc.xlsx.XLS



我试图获得 XLSX 的原因是因为有时 XLS 版本是如此之大,Office 2007被卡住打开或占用长。



现在只有解决方法是等待,打开Office 2007中的 XLS ,另存为 .XLSX ,然后更快打开。

$ b $

解决方案

我建议缓慢的开放是因为你正在提供数据以HTML格式,不是因为扩展名。您可以通过直接从浏览器保存文件,使用xlsx文件扩展名重命名并打开它来测试此操作。



如果要以Excel格式保存数据直接,我将查看Ben Nadel的 POI CFC项目


I am using ColdFusion 8. Doing something like this:

<cfheader name="content-disposition" value="attachment; filename=abc.xlsx">
<cfcontent type="application/msexcel">
<html> 

But I get a file like abc.xlsx.XLS.

The reason I'm trying to get an XLSX is because sometimes the XLS version is so large and Office 2007 gets stuck opening it or takes way to long.

Only workaround right now is to wait, open the XLS in Office 2007, save as .XLSX and then open it faster.

Any help is appreciated!

解决方案

I would suggest that the slow opening is because you are providing the data in an HTML format, not because of the extension. You could test this by saving the file directly from the browser, renaming it with the xlsx file extension, and opening it.

If you want to save data in an Excel format directly, I would check out Ben Nadel's POI CFC project.

这篇关于ColdFusion 8总是打开.XLS,想要.XLSX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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