Re: Save Word Doc as ASCII Text and set line width?
- From: "Jonathan West" <jwest@xxxxxxxx>
- Date: Wed, 18 Apr 2007 12:45:33 +0100
"djconner" <djconner@xxxxxxxxx> wrote in message news:1176832049.612954.206480@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a VBA/Microsoft Access program that generates a document in
Word 2000. My new requirement is that I need to then save the
document in ASCII text with a maximum line width of 69 characters.
I think I have the first part covered, and in terms of formatting it's
fairly simple already, but I'm not sure how to go about setting that
69-character line width.
A side issue, in case anybody knows... Can accented characters be
used in an ASCII text document, and if so, how? Specifically, this
character: É as used in the capitalized word "ATTACHÉ". Currently
when doing a SaveAs to wdFormatDOSTextLineBreaks, that character turns
into a garbage character.
Hi djconnor
The key to setting the line length to 69 characters is to proceed as follows before you save the document.
1. Format all text in the document using a fixed-width font such as Courier New and with a common font size
2. Adjust the margins so that the line width accommodates no more than 69 characters
To get the accented E to appear OK in the text file, save as wdFormatTextLineBreaks, not as wdFormatDOSTextLineBreaks.
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
.
- Follow-Ups:
- Re: Save Word Doc as ASCII Text and set line width?
- From: djconner
- Re: Save Word Doc as ASCII Text and set line width?
- References:
- Save Word Doc as ASCII Text and set line width?
- From: djconner
- Save Word Doc as ASCII Text and set line width?
- Prev by Date: Save Word Doc as ASCII Text and set line width?
- Next by Date: Re: Save Word Doc as ASCII Text and set line width?
- Previous by thread: Save Word Doc as ASCII Text and set line width?
- Next by thread: Re: Save Word Doc as ASCII Text and set line width?
- Index(es):
Relevant Pages
|