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

Automatic RTF printing (no pre-view)

0 views
Skip to first unread message

Casey Sackett

unread,
Jun 9, 1999, 3:00:00 AM6/9/99
to
Word Viewer 97 is the only viewer/printer outside of Microsoft Word 97 I've
found that supports the full RTF tag set (in particular, I need support for
linked images). My problem is I can't get it to print a file without
opening (viewing) the file. Anyone know how to do this (via any means:
command line, DDE, OLE automation)?

Alternatively, anyone know of a program that supports the full RTF command
set and allows printing without opening (viewing) the file? I've tried
KeyView and Quick View Plus...

Thanks!

Casey Sackett
Software Engineer
Morgan Laboratories, Inc.
ca...@morganlabs.com

Johannes Brodwall

unread,
Jun 10, 1999, 3:00:00 AM6/10/99
to Casey Sackett

Casey Sackett wrote:
>
> Word Viewer 97 is the only viewer/printer outside of Microsoft Word 97 I've
> found that supports the full RTF tag set (in particular, I need support for
> linked images). My problem is I can't get it to print a file without
> opening (viewing) the file. Anyone know how to do this (via any means:
> command line, DDE, OLE automation)?

I do not know Word Viewer 97, so I cannot say anything about that. The
task you descripe is pretty easy using Word and OLE automation, though.
Here's some VB code

Dim wordapp As Word.Application
Set wordapp = New Word.Application
wordapp.Documents.Open(<document>.rtf).PrintOut (Background=True)
wordapp.Quit

The normal problem with printing with word is that it will flash the
word application window. As this code never calls wordapp.Visible =
true, this will not happen in this case, though. Good luck!


--
j'hannes
(Remove "removetoreply." from email address to reply)

0 new messages