Answered
CFContent -- excel problem
Hello Everyone,
I am new to Coldfusion. I am trying to use the CFcontent tag to try to create an excel spreadsheet when a users clicks on a link. However, when I use the cfoutput tag, the excel window comes up to save, or open, but the file name suffix is .cfm instead of .xls. If I remove the cfoutput tags, the file suffix is .xls, but instead of listing the values, I get the field name in all cells -- ex. #hhkey# -- it does not replace the field name with the value. Could anyone assist me? Attached is the code:
I am new to Coldfusion. I am trying to use the CFcontent tag to try to create an excel spreadsheet when a users clicks on a link. However, when I use the cfoutput tag, the excel window comes up to save, or open, but the file name suffix is .cfm instead of .xls. If I remove the cfoutput tags, the file suffix is .xls, but instead of listing the values, I get the field name in all cells -- ex. #hhkey# -- it does not replace the field name with the value. Could anyone assist me? Attached is the code:
