我似乎无法使用 cfcontent 打开 powerpoint(ppt) 文档。我的代码打开其他类型的办公文档没有问题。下面是代码:
<cfheader name="content-disposition" value="attachment; filename=#qry.clientFile#"/>
<cfcontent type="#qry.contentType#/#qry.contentSubType#" variable="#qry.documentData#"/>
qry.clientFile = Presentation2.ppt
qry.contentType = 应用程序
qry.contentSubType = vnd.ms-powerpoint
qry.documentData = 文档本身
我正在使用上面的行打开其他文档没问题。另外,我正在尝试在office 2007中打开一个office 2003 ppt文件。