Solved

RTF files: Hard Return codes at end of each line

Posted on 2003-11-11
2
732 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cognitive Services 1 36
Magic Software info 18 142
EDI Solution or comparable? 2 51
downlod failures 6 68
Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
A list of useful business intelligence software.
Viewers will learn how to use the Hootsuite Dashboard.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

735 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