Hi Paul,
The prompt for name is probably coming from Windows rather than Word,
You can use this macro from Word to print to the current document to the
MS Office Document image writer without seeing the dialog
box. If the file already exists it increments to a new file name (adds
numbers).
'============
Sub MSPaperPrint
'MS Paper is the original name of MS Office Document Imaging'
'MS Office Live Meeting Writer variant may also be an option'
Active Printer = "MS Office Document Image Writer"
Application.PrintOut OutputFilename:="<your path and default name here>"
End Sub
'==============
I'm assuming you could also pull an output name to be placed there from a
text/.ini file, but you may want to also follow up in one
of the Word VBA discussion groups (link below) as I'm guessing you'll want
to modify it to be more selective (i.e. print only
current page or current section).
The MS Office Document Imaging object model can set how you handle things
on the receiving side
http://msdn.microsoft.com/en-us/library/aa279439(office.11).aspx
(which can also be scripted)
There are also 3rd party products that let print to TIFF (might even be
able to use the MS Windows Fax capabilities as you appear to
be using greyscale TIFFs) and a number of them allow you to manipulate the
output and script as well and some (for example
http://www.zan1011.com/dev.htm) or command line tools such as
http://imagemagick.com that could create the file from a postscript
file, as an example, or you might consider copying from Word and then
pasting to MS Office Document Imaging rather than using the
printer if you want to further manipulate the image/files.
==============
I have been trying to figure this out for a couple of weeks now and to no
avail so I'm asking for some help. Does anyone know how to get Microsofts
Document Image Writer to print automatically without putting up the "Save
as"
dialog box?
My situation is this: I have an application that prints a batch of
reports,
and for each page the application sends an individual print command. So
if I
want these documents saved in tiff files I need to hit print a few
thousand
times to accept every individual save as box. I don't need to change the
file name, as it defaults to a new file every time. Is there a way to
have
the office document automatically save to the default file with out
prompting?
Thanks in advance to anyone offering help.
Paul
--
Paul Kotlarz>>
--
Please let us know if this has helped,
Bob Buckland ?
MS Office System Products MVP
LINKS
A. Specific newsgroup/discussion group mentioned in this message:
news://msnews.microsoft.com/microsoft.public.word.programming
or via browser:
http://microsoft.com/communities/newsgroups/en-us/?dg=microsoft.public.word.programming
B. MS Office Community discussion/newsgroups via Web Browser
http://microsoft.com/office/community/en-us/default.mspx
or
Microsoft hosted newsgroups via Outlook Express/newsreader
news://msnews.microsoft.com