Solved

set printer prefernces by code?

Posted on 2011-02-16
3
674 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
A short film showing how OnPage and Connectwise integration works.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

914 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now