-
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!
-
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.
-
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
-
By arturo63 in forum VB Classic
Replies: 2
Last Post: 07-29-2006, 08:11 AM
-
By Magdalene in forum ASP.NET
Replies: 1
Last Post: 07-05-2005, 06:16 AM
-
By Jay Eggert in forum VB Classic
Replies: 2
Last Post: 08-20-2001, 03:10 PM
-
By Duncan Campbell in forum VB Classic
Replies: 6
Last Post: 05-04-2000, 07:48 AM
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks