Results 1 to 5 of 5

Thread: Change The Printer Properties

  1. #1
    Guest

    Post

    How can you access the [default] printer properties. And change them. Example changing from Portriat to Landscape..
    Or using A4 or Envelope. Please show me some code...........

    -Kayoca Mortation

  2. #2
    Lively Member FirstKnight's Avatar
    Join Date
    Jul 1999
    Location
    Johannesburg, South Africa
    Posts
    95

    Post

    The easiest way I can think of right now is to put a command dialog control on the form and the use either Commondialog1.Orientation for landscape or portrait. To changer paper size use Commondialog1.Showprinter.

    ------------------
    Today is the last day of your past

  3. #3
    Guest

    Post

    Hey FirstKnight thanks.... But i know that already. I mean like if your using DataReport
    and when i want to use landscape and the [default] printer is portriat. then my app is giving a error. "paper is larger then the paper width." So i think i am gone use the [default] printer properties to change the orientation. And now i need to know is how can you change them by code in vb. Because the DataReport is always using the [default] printer. Please help me out. It's a pain in my head......

  4. #4
    Addicted Member
    Join Date
    Oct 1999
    Posts
    232

    Post

    Use the Printer Object.

    Printer.Orientation = vbPRORPortrait
    Printer.Orientation = vbPRORLandscape

    ------------------
    smalig
    [email protected]
    http://vbcode.webhostme.com/



  5. #5
    Guest

    Post

    Sorry Smalig that wont work with DataReport.
    I have tryed many times. I realy need access to the Printer Properties. So i can change the orientation or other settings. So when the user log into the windows next time that the settings are still there. i am trying to use the printerproperties api. But i am not that good yet with the API's...

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