The problem with that is that Word uses pages! You'll eventually fall off the side, rather than a simple text editor which doesn't care, but won't do any fancy formatting.
You could set the page width to 55cm (seems to be about the maximum). That would hold quite a lot of text before it wrapped, depending on font size, but I wouldn't like to try and print it.
I'm quite intrigued by what you're trying to do - I can't imagine why you want to do it.
Basically, I just want Word to simulate a typewriter where it would just keep displaying the character on the same line till it hits the last character that is allowed by the right margin or the line may wrap to the next line any time when it encounter a new-line character.
Here is the reason why (bear with me):
The original data file is in plain ASCII format and comes in as one really long line with ASCII codes representing new-line preiodically appear within the lines. For example: (The "*" is used here to represent space and "." is used as new-line character,
LINE 1|FIELD 1|FIELD 2*****FIELD 2.1|FIELD 3|FIELD 4.LINE 2|FIELD 1|SAY FIELD 2 IS LONGER THEN THE RIGHT MARGIN|***FIELD 3|FIELD 4.LINE 3|FIELD 1 AND GOD KNOWS HOW LINE WOULD THIS LINE BE|FIELD 2|FIELD 3******FIELD 3.1|FIELD 4.
The number of spaces (represented by "*" is important. Therefore, if Word just wrap the line automatically, I will not be able to determine how many blank spaces are between each field. When Word encounter the ASCII new-line character (".", it would automatically start a new-line (see example below). I used courier font to make each "LINE n|" lined up nicely above the next one.
LINE 1|FIELD 1|FIELD 2*****FIELD 2A|FIELD 3|FIELD 4
LINE 2|FIELD 1|SAY FIELD 2 IS LONGER THEN THE RIGHT MARGIN|***FIELD 3|FIELD 4
LINE 3|FIELD 1 AND GOD KNOWS HOW LINE WOULD THIS LINE BE|FIELD 2|FIELD 3******FIELD 3A|FIELD 4
I have tried with some text editors. Although the line would display without wrapping till it hit max margin, the editors did not recognize the new-line ASCII character like Word and automatically started a new line. The editor would display the ASCII character either as a blank square box or a filled square box. Also, I tried using Word because of the formatting (font, color, margin, etc.) functions compare to plain text editor.
Okay, Mike. Maybe I'm being stupid? What is YOUR final product?
There are several bottom lines, which means we're really not at the bottom line yet, so I don't know why I said that, but here goes:
1. There's a possibility you ought to be using Excel instead.
2. There's a possibility you're saving it as text and ought to be saving it as a delimited file instead.
3. Perhaps your data comes in the way you describe and you ought to be converting it into a table or some other.
At this point, I really think I/we can help if you let us know the final product you need. If you need paragraph returns in stead of "," characters in Word, that is just a find/replace. And I'm probably just a little lost still, huh?
You've got my email. If you've got something that shows what you get and something that shows what you need, I KNOW I can help. Otherwise, I'm still trying to figure out exactly what it is you need.
techsupportgirl@home.com
Brainbench MVP for Microsoft Word
As I understand it, you are importing a text file to word, which is messing up your spaces when it wraps. (Unusual of Word to mess up formatting, isn't it??).
You could do the following, if you have the time.
Open the file using wordpad (start/programs/accessories), which you can set not to wrap at all. Find a character that you don't have elsewhere in the document (any one will do, say a tilde ~), and use the replace function on wordpad to change all the spaces to that character.
You can then open it with word, do what you like and then replace the changed characters afterwards.
Alternatively, you might just use wordpad anyway, but I'm probably not allowed to say that in th MS Office forum!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.