Solved

RTF files: Hard Return codes at end of each line

Posted on 2003-11-11
2
741 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

719 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