Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling data from a text area

Status
Not open for further replies.

stevebanks

Programmer
Joined
Mar 30, 2004
Messages
93
Hi Guys,

Hope you might be able to help me!

I am calling a few fields from a text area, and creating a formatted Word Doc on the fly... this is all working OK, but, when you put a carriage return in the text area it doesn't appear in Word... Is there a way to put a carriage return in where the user has put one??

Your help is much appreciated!
 
When you say Word document, do you mean .doc format or .rtf?

The problem seems that Word uses a different combination of line-ending carachters than is delivered. Try to convert the \n in \r\n and see what happens.
 
Thanks for the reply... I have solved the problem using the nl2br function.
smiletiniest.gif
Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top