I get the following message:
Internet Explorer cannot download...=HomeReportFAOYTDExpenditures from myserver
Internet Explorer was not able to open this internet site. The requested site is either unavailable or cannot be found. Please try again later.
Here is my code that I picked up off the web:
<!--- <cfsetting enablecfoutputonly="Yes">
<!--- get info --->
<cfquery name="ExportData" datasource="">
SELECT FUND, AGENCY, ORG
FROM SPENDPLAN_RPT_TABLE
WHERE USERNAME = '#USERNAME#'
ORDER BY FUND, AGENCY, ORG
</cfquery>
<!--- set vars for special chars --->
<cfset TabChar = Chr(9)>
<cfset NewLine = Chr(13) & Chr(10)>
<!--- set content type to invoke Excel --->
<CFCONTENT TYPE="application/msexcel">
<!--- suggest default name for XLS file --->
<!--- use "Content-Disposition" in cfheader for
Internet Explorer --->
<cfheader name="Content-Disposition" value="filename=FAOData.xls">
<!--- output data using cfloop & cfoutput --->
<cfloop query="ExportData">
<cfoutput>#FUND##TabChar##AGENCY#
#TabChar##ORGN##NewLine#</cfoutput>
</cfloop>
Does anyone know what's going on here? My server is a WIN2000 server with Excel loaded on the server. Also, CFCONTENT is enabled thru the administrator. I've been trying to get queries exported to Excel all morning and nothing seems to work. Any assistance is appreciated.
Thanks,
Sherry
Internet Explorer cannot download...=HomeReportFAOYTDExpenditures from myserver
Internet Explorer was not able to open this internet site. The requested site is either unavailable or cannot be found. Please try again later.
Here is my code that I picked up off the web:
<!--- <cfsetting enablecfoutputonly="Yes">
<!--- get info --->
<cfquery name="ExportData" datasource="">
SELECT FUND, AGENCY, ORG
FROM SPENDPLAN_RPT_TABLE
WHERE USERNAME = '#USERNAME#'
ORDER BY FUND, AGENCY, ORG
</cfquery>
<!--- set vars for special chars --->
<cfset TabChar = Chr(9)>
<cfset NewLine = Chr(13) & Chr(10)>
<!--- set content type to invoke Excel --->
<CFCONTENT TYPE="application/msexcel">
<!--- suggest default name for XLS file --->
<!--- use "Content-Disposition" in cfheader for
Internet Explorer --->
<cfheader name="Content-Disposition" value="filename=FAOData.xls">
<!--- output data using cfloop & cfoutput --->
<cfloop query="ExportData">
<cfoutput>#FUND##TabChar##AGENCY#
#TabChar##ORGN##NewLine#</cfoutput>
</cfloop>
Does anyone know what's going on here? My server is a WIN2000 server with Excel loaded on the server. Also, CFCONTENT is enabled thru the administrator. I've been trying to get queries exported to Excel all morning and nothing seems to work. Any assistance is appreciated.
Thanks,
Sherry