Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Loading a text file

3 views
Skip to first unread message

Dennis Allen

unread,
Jul 20, 2010, 11:36:54 PM7/20/10
to
Hi. I'm new here, hoping someone can help. I wrote a program for a
client. This program generates simple text file reports. The client
loads these text files into Word, then sets the font/pitch, and margins
to print the report the way she wants. Problem. Now she wants the
subtotals in bold.

Word is reading a simple text file. If I try to add bold on/off printer
control codes, wouldn't Word simply ignore them during the conversion to
a doc file? Is there a way to specify certain text be loaded as bold?

Short of generating a Word document, I don't know if there is a
solution. Any advice would be appreciated...Dennis

Doug Robbins - Word MVP

unread,
Jul 21, 2010, 1:51:27 AM7/21/10
to
If the client is doing that much, she might as well handle the formatting of
the sub-totals.

I would suggest however that your program should be creating a finished Word
document. It ain't that hard.

--
Hope this helps,

Doug Robbins - Word MVP
dkr[atsymbol]mvps[dot]org

"Dennis Allen" <den...@dennisallen.com> wrote in message
news:JpidnVkYIIrW9tvR...@pghconnect.com...

Graham Mayor

unread,
Jul 21, 2010, 2:44:04 AM7/21/10
to
I agree with Doug - create the Word document or provide the client with a
Word macro to open and format your text file the way she wants it.

"Dennis Allen" <den...@dennisallen.com> wrote in message
news:JpidnVkYIIrW9tvR...@pghconnect.com...

Wilfried

unread,
Jul 21, 2010, 11:24:43 AM7/21/10
to
"Dennis Allen" <den...@dennisallen.com> wrote:

> Hi. I'm new here, hoping someone can help. I wrote a program for a
> client. This program generates simple text file reports. The client
> loads these text files into Word, then sets the font/pitch, and margins
> to print the report the way she wants. Problem. Now she wants the
> subtotals in bold.
>
> Word is reading a simple text file. If I try to add bold on/off printer
> control codes, wouldn't Word simply ignore them during the conversion to
> a doc file? Is there a way to specify certain text be loaded as bold?

Hello,
what about inserting html codes in the text file?
Word loads .html files quite well.
The html file can be as simple as
<html>
<body>
<p>normal text</p>
<p><b>bold text</b></p>
<p>normal text</p>
</body>
</html>
or otoh even contain stylesheet information.

--
Wilfried Hennings
please reply in the newsgroup, the e-mail address is invalid

Dennis Allen

unread,
Jul 22, 2010, 12:22:48 PM7/22/10
to
That's an idea. Thanks.

"Wilfried" <Wilf...@invalid.invalid> wrote in message
news:7t3e46h89l0tpcdmb...@4ax.com...

0 new messages