Solved

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

Posted on 2004-10-07
3
556 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

18 Experts available now in Live!

Get 1:1 Help Now