Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. vb6 - changing printer settings

vb6 - changing printer settings

Scheduled Pinned Locked Moved Visual Basic
tutorialcareer
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    steff kamush
    wrote on last edited by
    #1

    Someone pls tell me how to change the page orientation setting for a printer before sending a job to printer, and how to restore the setting after printing. i.e. i want to change the setting completely so i can even see it in control panel as the new setting. In vb6. Thanks. :rose::rose: 1fm1fu

    D 1 Reply Last reply
    0
    • S steff kamush

      Someone pls tell me how to change the page orientation setting for a printer before sending a job to printer, and how to restore the setting after printing. i.e. i want to change the setting completely so i can even see it in control panel as the new setting. In vb6. Thanks. :rose::rose: 1fm1fu

      D Offline
      D Offline
      Duncan Edwards Jones
      wrote on last edited by
      #2

      use the GetDeviceCaps API call to see if you can set the printer landscape. If so use the OpenPrinter API call to get a handle to the printer and pass this to the SetPrinter API call to change the settings. ..although rememeber that users don't really like you to change their settings system wide... '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups