How to "pre-format" text file output from a database to Word

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to know how I can "preformat" text output from a database (i.e. bold
etc.) so that the text file will be treated correctly in Word. There must be
a way of "coding" the various Word attributes, but I have'nt been able to
find it anywhere.
 
Ole said:
I need to know how I can "preformat" text output from a database
(i.e. bold etc.) so that the text file will be treated correctly in
Word. There must be a way of "coding" the various Word attributes,
but I have'nt been able to find it anywhere.

Insert HTML tags and save the file with an .htm extension, and Word will
interpret them when it opens the file.

For example, create a text file with this content and name it
formatting.htm:

<html>
<body>
This text contains a <b>bold</b> word and an <i>italic</i> word.
</body>
</html>

Then open the file in Word and see the formatting.
 
Back
Top