2 Replies Latest reply on Jun 25, 2006 7:56 AM by BKBK

    CFC Output

    Rick Level 1
      I would like to create a component that controls creation of reports in our system. Many of these reports are already pre-formmated in HTML. Is there a way to output HTML from a CFC?
        • 1. Re: CFC Output
          Level 7
          All code in ColdFusion can output content to the browser. They in fact
          do it by default unless you assigned the OUTPUT="NO" to the CFFUNCTION.


          Rick wrote:
          > I would like to create a component that controls creation of reports in our system. Many of these reports are already pre-formmated in HTML. Is there a way to output HTML from a CFC?
          • 2. Re: CFC Output
            BKBK Adobe Community Professional & MVP
            <cfcomponent>
            <cffunction name="myFunc" returntype="string">
            <!--- generate the HTML and store it as the string htmlString --->
            <cfreturn htmlString>
            </cffunction>
            </cfcomponent>