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 / December 2006

Tip: Looking for answers? Try searching our database.

FilePreview Settings

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MJones - 20 Dec 2006 19:20 GMT
Hi,

I'm trying to do this:

Sub FilePreview()
'
' FilePreview Macro
' Previews the active document without drawing objects
'
   If Application.PrintPreview = False Then
       Options.PrintDrawingObjects = False
       ActiveDocument.PrintPreview
   End If
   Options.PrintDrawingObjects = True
End Sub

So drawing objects don't show when previewing, but turn back on
afterwards.  It works in my print macro (see below), but can't
understand why this doesn't work for FilePreview.  Any ideas?  Word
2003.

Sub FilePrintDefault()
'
' FilePrintDefault Macro
' Prints the active document without drawing objects
'
   Options.PrintDrawingObjects = False
   Dialogs(wdDialogFilePrint).Show
   Options.PrintDrawingObjects = True
End Sub

Thanks,

Michele
MJones - 21 Dec 2006 01:29 GMT
Hi All,

I got my friend who knows Access VBA to help.  Here's the final code
for both printing and print preview to turn off print drawings and set
it back to the original setting when done.

Dim mysetting
Sub FilePrintDefault()
' Prints the active document without drawing objects
   mysetting = Options.PrintDrawingObjects
   Options.PrintDrawingObjects = False
   Dialogs(wdDialogFilePrint).Show
   Options.PrintDrawingObjects = mysetting
End Sub
Sub FilePrintPreview()
' Previews the active document without drawing objects
   mysetting = Options.PrintDrawingObjects
   Options.PrintDrawingObjects = False
   ActiveDocument.PrintPreview
End Sub
Sub ClosePreview()
' Turns drawing objects back on after exiting print preview
   ActiveDocument.ClosePrintPreview
   Options.PrintDrawingObjects = mysetting
End Sub
-----------------

> Hi,
>
[quoted text clipped - 30 lines]
>
> Michele

Rate this thread:






 
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.