JustinEzequiel
Programmer
Am asked to convert lists in MS Word docs (actually RTF files) to text preserving text wrapping and hanging indents.
Save as Text does not preserve text wrapping.
WordPort can preserve text wrapping but not hanging indents.
Am considering, if I have to do this from MS Word:
Range.Information(wdFirstCharacterColumnNumber)
Range.Information(wdFirstCharacterLineNumber)
and ConvertNumbersToText(...)
but that approach seems to be a lot of work.
Set up a "Generic / Text Only" printer but the second line of each para went all over the place (first few words near the end of line 2, the rest followed in increasing (from the original) indents for 3 extra lines.
How would you approach this? Has anybody else done something similar?
BTW, the text output if for an HL7 interface.
Thanks
Code:
1. First item goes all the way to end and wraps
here for the second line followed by next number
2. Second point goes all the way to end and wraps
here for the second line
Save as Text does not preserve text wrapping.
WordPort can preserve text wrapping but not hanging indents.
Am considering, if I have to do this from MS Word:
Range.Information(wdFirstCharacterColumnNumber)
Range.Information(wdFirstCharacterLineNumber)
and ConvertNumbersToText(...)
but that approach seems to be a lot of work.
Set up a "Generic / Text Only" printer but the second line of each para went all over the place (first few words near the end of line 2, the rest followed in increasing (from the original) indents for 3 extra lines.
How would you approach this? Has anybody else done something similar?
BTW, the text output if for an HL7 interface.
Thanks