cfheader - producing inconsistent results

Discussion in 'Programming' started by jbird4k, Apr 9, 2009.

  1. #1
    I am using <cfheader> to export a cf based report to word. i've done this in the past with excel with no problems, However; now I'm experiencing two wierd results. 1. the file is being downloaded using the file name NOT the one specified in the header tag, 2. it is being down loaded as a .cfm instead of a .doc file.
    
     <cfheader name="Content-Type" value="application/vnd.msword">
     <cfheader name="Content-Dispositon"
     value="attachment; filename=#GetInspection.file_number#.doc">
    
    
    Code (markup):
    The report is massive and I have each section as its own include to speed up processing. could this be causing the problem??

    any suggestions would be appreciated.
     
    jbird4k, Apr 9, 2009 IP
  2. jbird4k

    jbird4k Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I am running mx 7 and web server is appache 2.0


    tia
     
    jbird4k, Apr 10, 2009 IP