Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

set printer prefernces by code?

Posted on 2011-02-16
3
Medium Priority
?
700 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
[X]
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
3 Comments
 
LVL 16

Accepted Solution

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

Assisted Solution

by:Rahul Agarwal
Rahul Agarwal earned 750 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

660 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