Connecting Tech Pros Worldwide Help | Site Map

WRAP function not working

  #1  
Old April 8th, 2009, 10:34 AM
Newbie
 
Join Date: Dec 2008
Posts: 29
Expand|Select|Wrap|Line Numbers
  1. <h3>Wrap Example</h3>
  2. <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 ">
  3. <cfoutput>#Wrap(inputText1,70)#</cfoutput>
  4.  
  5. <cfdocument filename="d:\pdft.pdf" overwrite="true" format="pdf">
  6. <h3>Wrap Example</h3>
  7. <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 ">
  8. <cfoutput>#Wrap(inputText,70)#</cfoutput>
  9.  
  10. </cfdocument>


this code not working ..could u plz?word not wrapingg

Last edited by acoder; April 9th, 2009 at 05:17 PM. Reason: Changed quote to code tags
  #2  
Old April 9th, 2009, 05:17 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,521
Provided Answers: 12

re: WRAP function not working


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Wrap Function / Wrapping Text christianlott1@yahoo.com answers 3 December 13th, 2007 04:05 PM
onClick not working in IE Nx answers 6 March 17th, 2006 07:55 PM
MySQL: UPDATE not working HydroSan answers 5 November 21st, 2005 05:52 AM
Array not working Treetop answers 12 July 20th, 2005 12:02 PM