Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

set printer prefernces by code?

Posted on 2011-02-16
3
680 Views
Last Modified: 2012-05-11
Salam

I want to set the printer preferences as follows :
Paper size to be 10x15cm
paper quality to be Fast Draft
Orientation as Portail

How can I do that

Thanks
0
Comment
Question by:Ahmadal_najjar2003
3 Comments
 
LVL 16

Accepted Solution

by:
Kalpesh Chhatrala earned 250 total points
ID: 34913265
0
 
LVL 13

Assisted Solution

by:agarwalrahul
agarwalrahul earned 250 total points
ID: 34927598
Typically, you create an instance of the PrintDocument class, set the properties that describe how to print, and call the Print method to start the printing process. Handle the PrintPage event where you specify the output to print, by using the Graphics included in the PrintPageEventArgs.

For step by step walkthrough refer to the links:

http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx

http://stackoverflow.com/questions/59213/easiest-way-to-add-a-header-and-footer-to-a-printing-printdocument-net-2-0

http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_21248336.html
0
 

Author Closing Comment

by:Ahmadal_najjar2003
ID: 36161653
Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question