Is there any way to turn off PrintToFile without actually having to
print anything? I've got an application that I enable the PrintToFile
option to create a file for spooling to a network printer. I've been
clearing the PrintToFile by setting it false and printing a zero page
document back to the default printer. Unfortunately, while nothing
prints, it results in a banner page printing, which our systems folks
need to be on. Anybody found a way to toggle this off?
zkid - 21 Sep 2006 06:02 GMT
Hi Mort. It took me a while to figure this out, but give this a try:
With Dialogs(wdDialogFilePrint)
.Application.PrintOut PrintToFile:=True
.Update
.Show
End With
Once you're satisfied it's working, you can remove the .Show line.
> Is there any way to turn off PrintToFile without actually having to
> print anything? I've got an application that I enable the PrintToFile
[quoted text clipped - 3 lines]
> prints, it results in a banner page printing, which our systems folks
> need to be on. Anybody found a way to toggle this off?
Mort - 02 Oct 2006 16:41 GMT
Appreciate it & I'll give it a try this week. Mort