Solved

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

Posted on 2004-10-07
3
561 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
3 Comments
 
LVL 19

Assisted Solution

by:arif_eqbal
arif_eqbal earned 20 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 480 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

821 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