Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

Word VBA PrintToFile

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mort - 06 Sep 2006 16:49 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.