Results 1 to 5 of 5

Thread: How do I change the Printer Orientation

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219

    Question

    Does anyone know how to change the Printer Orientation (to Landscape or Portrait) using API?

    I am pretty sure that this question has been answered before, so I tried to search this site. But the search functionality is disabled by the administrator.

  2. #2
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    Private Sub Form_Click()
    If printer.Orientation = 0 Then
    printer.Orientation = 1
    Else
    printer.Orientation = 0
    End If
    End Sub
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  3. #3
    New Member
    Join Date
    Mar 2001
    Posts
    2

    Question

    Dear sir,
    I have tried the same before. when printing the printer orientation changes but for the preview any report if its width is increased for landscape error occured as reportwidth exceeds its value. Reportwidth is maximum for portrait orientation not for landscape for preview.

    please help !

  4. #4
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    are you using the printer common dialog?
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    Thanks for replying,

    What I am trying to do is to bring about a system wide change to the printer orientation. (I am trying to change the default setting for a selected printer.) Is it possible to do it with API?

    With the printer object, it is not a system wide change. It just changes the orientation for the specific instance of the printer. The ESCAPE API function also does the same doesn't it?

    I have downloaded the pageset.exe from the m$ site, and it works fine, but I am not sure about the distribution rights.

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