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
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)