• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 714
  • Last Modified:

set printer prefernces by code?

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
Ahmadal_najjar2003
Asked:
Ahmadal_najjar2003
2 Solutions
 
Kalpesh ChhatralaSoftware ConsultantCommented:
0
 
Rahul AgarwalTeam LeaderCommented:
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
 
Ahmadal_najjar2003Author Commented:
Thanks
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now