Solved

RTF files: Hard Return codes at end of each line

Posted on 2003-11-11
2
712 Views
Last Modified: 2012-08-14
I am using a database that saves files in RTF format. When opening the RTF files in Word or WordPerfect, 'hard return' codes are inserted at the end of each line in a paragraph (essentially making each line a separate paragraph). A tedious 'search and replace' must be performed to eliminate this incorrect formatting. I have been searching the web for hours and can't find a solution to this problem. Why does this happen and (most importantly) is there any way to avoid this?
0
Comment
Question by:Cindy64
2 Comments
 
LVL 5

Accepted Solution

by:
Goofytouy earned 250 total points
ID: 9723748
Check the database which carriage return is inserting

When saving the RTF, one thing is to insert a chr(10) "new line", and other is to insert a chr(13)+chr(10) "carriage return + new line".
If you are using VBA or VB, vbLf should be what you are needing, and not vbCrLf.
0
 

Author Comment

by:Cindy64
ID: 9724850
(I hope this is the correct way to ask clarification of a comment. HELP was a little vague on how to do this.)

"Check the database which carriage return is inserting."
>>Am I correct in assuming from your comment that the database program is inserting chr(13)+chr(10) at the end of each line when the file is "saved as" an RTF file?
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
The viewer will learn how to set up a document for the web and print and the recommended PPI for printing.
The viewer will learn how to create multiple layers to apply various filters and how to delete areas from each layer’s filter.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now