WRAP function not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CFFAN
    New Member
    • Dec 2008
    • 29

    WRAP function not working

    Code:
    <h3>Wrap Example</h3>
    <cfset inputText1="Inserts line break at the location of the first white space character (such as a space, tab, or new line) before the specified limit on a line. If a line has no whitespace characters before the limit, inserts a line break at the limit. Uses the operating-system specific line break: newline for UNIX, carriage return and newline on Windows.If you specify the strip parameter, all existing line breaks are removed, so any paragraph formatting is lost.Use this function to limit the length of text lines, such as text to be included in a mail message. The cfmail and cfmailpart tag wraptext attributes use this function ">
    <cfoutput>#Wrap(inputText1,70)#</cfoutput>
    
    <cfdocument filename="d:\pdft.pdf" overwrite="true" format="pdf">
    <h3>Wrap Example</h3>
    <cfset inputText="Inserts line break at the location of the first white space character (such as a space, tab, or new line) before the specified limit on a line. If a line has no whitespace characters before the limit, inserts a line break at the limit. Uses the operating-system specific line break: newline for UNIX, carriage return and newline on Windows.If you specify the strip parameter, all existing line breaks are removed, so any paragraph formatting is lost.Use this function to limit the length of text lines, such as text to be included in a mail message. The cfmail and cfmailpart tag wraptext attributes use this function ">
    <cfoutput>#Wrap(inputText,70)#</cfoutput>
    
    </cfdocument>


    this code not working ..could u plz?word not wrapingg
    Last edited by acoder; Apr 9 '09, 04:17 PM. Reason: Changed quote to code tags
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Is it not working in both cases or just within cfdocument?

    Comment

    Working...