Word landscape printing issue

Author Message
rflowers

  • Total Posts : 2
  • Scores: 0
  • Reward points : 0
  • Joined: 5/16/2005
  • Location: USA
  • Status: offline
Word landscape printing issue Tuesday, May 17, 2005 5:41 AM (permalink)
0
Hi,

Can someone tell me why this script will not change to landscape when it prints?

- - - - - - - - - - - - - - - -
Const wdDoNotSaveChanges = 0

sFolder = "C:\iEngine\Control\"

Set oArg = WScript.Arguments
sDocument = oArg.Item(0)

sDocument = sFolder + sDocument

With CreateObject("Word.Application")

' to hide Word, set .Visible to False
.Visible = True

' open document & prep to print
.Documents.Open(sDocument)
.Options.PrintBackground = False

.ActiveDocument.PageSetup.Orientation = wdOrientLandscape
.ActiveDocument.PrintOut

' quit without saving any changes
.Application.Quit wdDoNotSaveChanges

End With
- - - - - - - - - - - - - - - - - - - -

Thanks,
Rich (newbie)
 
#1
    rflowers

    • Total Posts : 2
    • Scores: 0
    • Reward points : 0
    • Joined: 5/16/2005
    • Location: USA
    • Status: offline
    Re: Word landscape printing issue Tuesday, May 17, 2005 7:21 AM (permalink)
    0
    Figured it out...

    I forgot to define constant wdOrientLandscape as 1
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9