Setting printer properties


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Setting printer properties

  1. #1
    Join Date
    Jun 2006
    Posts
    20

    Setting printer properties

    Hello,

    This is related to my previous thread about installing a printer. Now when I have installed the printer, I would sometimes like to change the properties of it (like for example the papersize or the orientation). How could that be done? I tried with the "Printer" object, but it didn't work (probably because the files I am printing are printed with their respective applications, so I'm never using the Printer object). So I somehow need to get at the printer properties of an installed printer...any API functions that could do that? I've seen something on the net with PRINTER_INFO and DEVMODE, but I haven't been able to find any good explanations on how that works.

    Very grateful for help!

  2. #2
    Join Date
    Apr 2004
    Location
    Lafayette, LA
    Posts
    200
    Check Daniel Appleman's Programmer's Guide to the Win32 API.

    Whether or not your program can change printer settings depends a lot on which operating system you are running and your access privileges and your program's access privileges. If you are trying to change settings for a network printer then it gets even more complicated. This book can help get you started, but things have changed a lot since this book was published.

  3. #3
    Join Date
    Dec 2003
    Posts
    2,750
    The following may help:

    How To Retrieve Settings From a Printer Driver
    http://support.microsoft.com/kb/q190218/

    How To Open the Printer Properties Dialog
    http://support.microsoft.com/kb/q198860/

    HOW TO: Raise and Control Print Dialog Boxes from Visual Basic
    http://support.microsoft.com/kb/322710/EN-US/

    http://support.microsoft.com/kb/q230743/
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

Similar Threads

  1. setting field properties in ACCESS from VB
    By arturo63 in forum VB Classic
    Replies: 2
    Last Post: 07-29-2006, 08:11 AM
  2. Replies: 1
    Last Post: 07-05-2005, 06:16 AM
  3. setting default printer
    By Jay Eggert in forum VB Classic
    Replies: 2
    Last Post: 08-20-2001, 03:10 PM
  4. Setting Properties of Control Created at runtime
    By Duncan Campbell in forum VB Classic
    Replies: 6
    Last Post: 05-04-2000, 07:48 AM
  5. Setting Properties of Control Created at runtime
    By Duncan Campbell in forum VB Classic
    Replies: 0
    Last Post: 05-04-2000, 02:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center