?
Solved

RTF files: Hard Return codes at end of each line

Posted on 2003-11-11
2
Medium Priority
?
749 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 750 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

762 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