?
Solved

.Net Printing - Limiting Orientation and Paper Size options in print dialog

Posted on 2004-10-07
3
Medium Priority
?
571 Views
Last Modified: 2012-05-05
I have a small C# Windows app that should limit users to always printing in "Portrait" orientation with a paper size of 8.5/11.

My question is what is the best way to do this?

1. Is it possible to disable the Landscape option that displays on the Print - Properties page?
2. Is it possible to limit the Paper Size options that display on the Print - Properties page to 8.5/11? (right now it displays A4, A5, B5, DL Envelope, etc...none of which would be supported by this app).

I realize this is the VB.Net topic area but I have posted this question to the C# area and have no replies yet so I was wondering if any VB.Net developers have some info. on this.

Thanks for your time,
0
Comment
Question by:FlamingTrousers
[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 19

Assisted Solution

by:arif_eqbal
arif_eqbal earned 60 total points
ID: 12256456
Well i do not know if you can limit the display of these options but yes you can check if the values set by the user is valid for your case or not. i.e. when the user interacts with the Dialog box sets the Orientation values etc. and clicks Print at that time you can check the values validate it and if it is not proper you can show a message and reopen the Dialog box. That will not be very approppriate though but if it suits you fine..
0
 
LVL 10

Accepted Solution

by:
123654789987 earned 1440 total points
ID: 12256703
U can use the code as explained here to always print in potrait. It also gives the methods for defining the size of the page

http://www.vb-helper.com/howto_net_print_landscape.html
0
 

Author Comment

by:FlamingTrousers
ID: 12279373
OK. Thanks for the input!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

762 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