I am trying to write a function that returns xml type and generate the content 
in a well formated word document. Somehow the word will just return blanks with 
no content in it. When I highlight the doc, I see some tabs and spaces. The 
code is below:

in cfc:
<cfcomponent>
  <cffunction name="myXML" access="public" returntype="xml"> 
    <cfxml variable="xmlobject"> 
      <!--- the xml code. It is copied from the reversed xml code of a well 
formated word prototype --->
    </cfxml> 
        <cfreturn xmlobject>
  </cffunction>   
</cfcomponent>

the cfm:

<cfobject name="xmlCFC" component="testXML">
<cfset myXML = xmlCFC.myXML()>
<cfoutput>
<cfcontent type="application/msword" reset="No">
 </cfoutput> 
<cfheader name="Content-Disposition" value="attachment; 
filename=""AdmissionLetter.doc""">
<cfsetting showDebugOutput="false">


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209308
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to