CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2000
    Location
    Ohio
    Posts
    238

    Printer Defaults

    Is there a way that I can set the default printers paper orientation. I dont want to include it in a specific print routine. I just want the program to automatically set the orientation of the printer to landscape when the program starts and reset it back to the way it was before when the program ends.
    Thanks
    Joe


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Printer Defaults

    'that will return True or False but won't change the orientation
    Print Printer.Orientation = vbPRORPortrait
    Print Printer.Orientation=vbPRORLandscape

    'that will change the orientation


    Printer.Orientation = vbPRORPortrait
    Printer.Orientation = vbPRORLandscape



    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Nov 2000
    Location
    Ohio
    Posts
    238

    Re: Printer Defaults

    This only works for the current printer object.
    For example

    Printer.Orientation = vbPRORLandscape
    Printer.Print "This is landscape orientation"
    Printer.EndDoc

    This works fine and the page is printed landscape.
    However if I go out to my system settings and check the default printer settings it is still set at portrait orientation.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured